mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 02:53:06 +00:00 
			
		
		
		
	update CI
This commit is contained in:
		
							
								
								
									
										6
									
								
								.github/actions/setup_project/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/actions/setup_project/action.yml
									
									
									
									
										vendored
									
									
								
							@@ -16,16 +16,16 @@ runs:
 | 
				
			|||||||
      shell: bash
 | 
					      shell: bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Set up python
 | 
					    - name: Set up python
 | 
				
			||||||
      uses: actions/setup-python@v4
 | 
					      uses: actions/setup-python@v5
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        python-version: "3.10"
 | 
					        python-version: "3.12"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Load cached Poetry installation
 | 
					    - name: Load cached Poetry installation
 | 
				
			||||||
      id: cached-poetry
 | 
					      id: cached-poetry
 | 
				
			||||||
      uses: actions/cache@v3
 | 
					      uses: actions/cache@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: ~/.local
 | 
					        path: ~/.local
 | 
				
			||||||
        key: poetry-0  # increment to reset cache
 | 
					        key: poetry-1  # increment to reset cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Install Poetry
 | 
					    - name: Install Poetry
 | 
				
			||||||
      if: steps.cached-poetry.outputs.cache-hit != 'true'
 | 
					      if: steps.cached-poetry.outputs.cache-hit != 'true'
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							@@ -36,7 +36,8 @@ jobs:
 | 
				
			|||||||
          export PATH="/home/sith/.local/bin:$PATH"
 | 
					          export PATH="/home/sith/.local/bin:$PATH"
 | 
				
			||||||
          pushd ${{secrets.SITH_PATH}}
 | 
					          pushd ${{secrets.SITH_PATH}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          git pull
 | 
					          git fetch
 | 
				
			||||||
 | 
					          git reset --hard origin/master
 | 
				
			||||||
          poetry install --with prod --without docs,tests
 | 
					          poetry install --with prod --without docs,tests
 | 
				
			||||||
          poetry run ./manage.py install_xapian
 | 
					          poetry run ./manage.py install_xapian
 | 
				
			||||||
          poetry run ./manage.py migrate
 | 
					          poetry run ./manage.py migrate
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/deploy_docs.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/deploy_docs.yml
									
									
									
									
										vendored
									
									
								
							@@ -9,7 +9,7 @@ jobs:
 | 
				
			|||||||
  deploy:
 | 
					  deploy:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v3
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - uses: ./.github/actions/setup_project
 | 
					      - uses: ./.github/actions/setup_project
 | 
				
			||||||
      - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
 | 
					      - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
 | 
				
			||||||
      - uses: actions/cache@v3
 | 
					      - uses: actions/cache@v3
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								.github/workflows/taiste.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/taiste.yml
									
									
									
									
										vendored
									
									
								
							@@ -35,7 +35,8 @@ jobs:
 | 
				
			|||||||
          export PATH="$HOME/.poetry/bin:$PATH"
 | 
					          export PATH="$HOME/.poetry/bin:$PATH"
 | 
				
			||||||
          pushd ${{secrets.SITH_PATH}}
 | 
					          pushd ${{secrets.SITH_PATH}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          git pull
 | 
					          git fetch
 | 
				
			||||||
 | 
					          git reset --hard origin/taiste
 | 
				
			||||||
          poetry install --with prod --without docs,tests
 | 
					          poetry install --with prod --without docs,tests
 | 
				
			||||||
          poetry run ./manage.py install_xapian
 | 
					          poetry run ./manage.py install_xapian
 | 
				
			||||||
          poetry run ./manage.py migrate
 | 
					          poetry run ./manage.py migrate
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user