mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Use another python action instead
This commit is contained in:
		
							parent
							
								
									b31bfeebd7
								
							
						
					
					
						commit
						a6c6f64453
					
				
							
								
								
									
										13
									
								
								.github/workflows/docker-publish.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/docker-publish.yml
									
									
									
									
										vendored
									
									
								
							@ -12,21 +12,20 @@ jobs:
 | 
				
			|||||||
        os: [ubuntu-20.04]
 | 
					        os: [ubuntu-20.04]
 | 
				
			||||||
        python-version: [3.6,3.7,3.8]
 | 
					        python-version: [3.6,3.7,3.8]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
    - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
    - name: Set up Python ${{ matrix.python-version }}
 | 
					      - name: Install python version
 | 
				
			||||||
      uses: actions/setup-python@v2
 | 
					        uses: gabrielfalcao/pyenv-action@v5
 | 
				
			||||||
      with:
 | 
					        with:
 | 
				
			||||||
        python-version: ${{ matrix.python-version }}
 | 
					          default: "${{ matrix.python-version }}"
 | 
				
			||||||
 | 
					          command: pip install -U pip  # upgrade pip after installing python
 | 
				
			||||||
    - name: Tests
 | 
					    - name: Tests
 | 
				
			||||||
      env: 
 | 
					      env: 
 | 
				
			||||||
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
        MATRIX_PYTHON_VERSION: ${{strategy.matrix.python-version}}
 | 
					 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        echo "Selected python version from matrix is: ${MATRIX_PYTHON_VERSION}"
 | 
					        echo "Selected python version from matrix is: ${MATRIX_PYTHON_VERSION}"
 | 
				
			||||||
        sudo apt-get update -qq
 | 
					        sudo apt-get update -qq
 | 
				
			||||||
        sudo apt-get install -qq libpoppler-cpp-dev unpaper tesseract-ocr imagemagick ghostscript optipng
 | 
					        sudo apt-get install -qq libpoppler-cpp-dev unpaper tesseract-ocr imagemagick ghostscript optipng
 | 
				
			||||||
        pip install --upgrade pipenv
 | 
					        pip install --upgrade pipenv
 | 
				
			||||||
        pyenv global system ${MATRIX_PYTHON_VERSION}
 | 
					 | 
				
			||||||
        pipenv install --system --dev
 | 
					        pipenv install --system --dev
 | 
				
			||||||
        cd src/
 | 
					        cd src/
 | 
				
			||||||
        pipenv run pytest --cov
 | 
					        pipenv run pytest --cov
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user