mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Changes codestyle and documentation steps to use cache as well
This commit is contained in:
		
							
								
								
									
										42
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										42
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -18,32 +18,25 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Checkout |         name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
|  |       - | ||||||
|  |         name: Install pipenv | ||||||
|  |         run: pipx install pipenv | ||||||
|       - |       - | ||||||
|         name: Set up Python |         name: Set up Python | ||||||
|         uses: actions/setup-python@v2 |         uses: actions/setup-python@v2 | ||||||
|         with: |         with: | ||||||
|           python-version: 3.9 |           python-version: 3.9 | ||||||
|       - |           cache: "pipenv" | ||||||
|         name: Get pip cache dir |           cache-dependency-path: 'Pipfile.lock' | ||||||
|         id: pip-cache |  | ||||||
|         run: | |  | ||||||
|           echo "::set-output name=dir::$(pip cache dir)" |  | ||||||
|       - |  | ||||||
|         name: Persistent Github pip cache |  | ||||||
|         uses: actions/cache@v2 |  | ||||||
|         with: |  | ||||||
|           path: ${{ steps.pip-cache.outputs.dir }} |  | ||||||
|           key: ${{ runner.os }}-pip3.8} |  | ||||||
|       - |       - | ||||||
|         name: Install dependencies |         name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|           pip install --upgrade pipenv |           pipenv install --dev --ignore-pipfile | ||||||
|           pipenv install --system --dev --ignore-pipfile |  | ||||||
|       - |       - | ||||||
|         name: Make documentation |         name: Make documentation | ||||||
|         run: | |         run: | | ||||||
|           cd docs/ |           cd docs/ | ||||||
|           make html |           pipenv run make html | ||||||
|       - |       - | ||||||
|         name: Upload artifact |         name: Upload artifact | ||||||
|         uses: actions/upload-artifact@v2 |         uses: actions/upload-artifact@v2 | ||||||
| @@ -57,32 +50,25 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Checkout |         name: Checkout | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
|  |       - | ||||||
|  |         name: Install pipenv | ||||||
|  |         run: pipx install pipenv | ||||||
|       - |       - | ||||||
|         name: Set up Python |         name: Set up Python | ||||||
|         uses: actions/setup-python@v2 |         uses: actions/setup-python@v2 | ||||||
|         with: |         with: | ||||||
|           python-version: 3.9 |           python-version: 3.9 | ||||||
|       - |           cache: "pipenv" | ||||||
|         name: Get pip cache dir |           cache-dependency-path: 'Pipfile.lock' | ||||||
|         id: pip-cache |  | ||||||
|         run: | |  | ||||||
|           echo "::set-output name=dir::$(pip cache dir)" |  | ||||||
|       - |  | ||||||
|         name: Persistent Github pip cache |  | ||||||
|         uses: actions/cache@v2 |  | ||||||
|         with: |  | ||||||
|           path: ${{ steps.pip-cache.outputs.dir }} |  | ||||||
|           key: ${{ runner.os }}-pip${{ matrix.python-version }} |  | ||||||
|       - |       - | ||||||
|         name: Install dependencies |         name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|           pip install --upgrade pipenv |           pipenv install --dev --ignore-pipfile | ||||||
|           pipenv install --system --dev --ignore-pipfile |  | ||||||
|       - |       - | ||||||
|         name: Codestyle |         name: Codestyle | ||||||
|         run: | |         run: | | ||||||
|           cd src/ |           cd src/ | ||||||
|           pycodestyle --max-line-length=88 --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E203 |           pipenv run pycodestyle --max-line-length=88 --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E203 | ||||||
|   codeformatting: |   codeformatting: | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-20.04 | ||||||
|     steps: |     steps: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Trenton Holmes
					Trenton Holmes