Upload coverage #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Upload coverage | |
| on: | |
| workflow_run: | |
| workflows: ['Code Tests', 'Geopandas tests', 'Code Tests with Latest branca', 'Selenium Tests', 'Run Snapshot Tests', 'Run Streamlit Folium Tests'] | |
| types: [completed] | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download coverage files from previous steps | |
| id: download-artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: combined-coverage | |
| pattern: coverage* | |
| merge-multiple: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install coverage | |
| run: pip install coverage | |
| - name: Combine coverage | |
| run: coverage combine | |
| - name: Generate report | |
| run: coverage html --skip-covered | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: combined-coverage | |
| path: htmlcov/** |