mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 16:11:20 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			822 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			822 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| 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: |
 | |
|         mkdir -p junit
 | |
|         pytest test/ --doctest-modules --junitxml=junit/test-results.xml --cov=superfaktura --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() }}
 |