mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 08:22:32 +01:00 
			
		
		
		
	ga: add workflow for pytest
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/workflows/pytest.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/pytest.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| name: PyTest | ||||
|  | ||||
| on: [push] | ||||
|  | ||||
| jobs: | ||||
|   test: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|     - uses: actions/checkout@v4 | ||||
|     - name: Set up Python | ||||
|       uses: actions/setup-python@v5 | ||||
|       with: | ||||
|         python-version: '3.10' | ||||
|     - name: Install dependencies | ||||
|       run: | | ||||
|         python -m pip install --upgrade pip | ||||
|         pip install -r requirements_dev.txt | ||||
|     - name: Test with pytest | ||||
|       run: | | ||||
|         pip install pytest pytest-cov | ||||
|         pytest test/ --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html | ||||
|     - name: Upload pytest test results | ||||
|       uses: actions/upload-artifact@v4 | ||||
|       with: | ||||
|         name: pytest-results | ||||
|         path: junit/test-results.xml | ||||
|       # Use always() to always run this step to publish test results when there are test failures | ||||
|       if: ${{ always() }} | ||||
		Reference in New Issue
	
	Block a user