Save projects in the new Edi format with simpler data downloads #180
Workflow file for this run
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: Coverage checks | |
| on: | |
| # Trigger the workflow on push to develop | |
| push: | |
| branches: | |
| - develop | |
| # Trigger the workflow on pull request | |
| pull_request: | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Need permissions to trigger the dashboard build workflow | |
| permissions: | |
| actions: write | |
| contents: read | |
| # Allow only one concurrent workflow per PR or branch ref. | |
| # Cancel in-progress runs only for pull requests, but let branch push runs finish. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| # Set the environment variables to be used in all jobs defined in this workflow | |
| env: | |
| CI_BRANCH: ${{ github.head_ref || github.ref_name }} | |
| jobs: | |
| # Job 1: Run unit tests with coverage and upload to Codecov. | |
| # Docstring coverage is gated as a static check in lint-format.yml. | |
| unit-tests-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check-out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up pixi | |
| uses: ./.github/actions/setup-pixi | |
| - name: Run unit tests with coverage | |
| run: pixi run unit-tests-coverage --cov-report=xml:coverage-unit.xml | |
| - name: Upload unit tests coverage to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: ./.github/actions/upload-codecov | |
| with: | |
| name: unit-tests-job | |
| flags: unittests | |
| files: ./coverage-unit.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| # Job 4: Build and publish dashboard (reusable workflow) | |
| run-reusable-workflows: | |
| needs: [unit-tests-coverage] # depend on the previous job | |
| uses: ./.github/workflows/dashboard.yml | |
| secrets: inherit |