test: update test coverage #204
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*" | |
| pull_request: {} | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-manifest: | |
| name: Check Manifest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - run: pipx run check-manifest | |
| test: | |
| name: ${{ matrix.platform }} py${{ matrix.python-version }} ${{ matrix.backend }} | |
| runs-on: ${{ matrix.platform }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13'] | |
| platform: [macos-latest, windows-latest] | |
| resolution: [highest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install Dependencies | |
| run: uv sync --no-dev --extra cp4 --group test --resolution ${{ matrix.resolution }} | |
| - name: Install Windows OpenGL | |
| if: runner.os == 'Windows' | |
| run: | | |
| git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git | |
| powershell gl-ci-helpers/appveyor/install_opengl.ps1 | |
| if (Test-Path -Path "C:\Windows\system32\opengl32.dll" -PathType Leaf) {Exit 0} else {Exit 1} | |
| - name: Run Tests | |
| run: uv run --no-sync coverage run -p -m pytest -v --color=yes | |
| - name: Combine & generate coverage XML | |
| run: | | |
| uv run --no-sync coverage combine | |
| uv run --no-sync coverage xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| flags: ${{ matrix.platform }}-py${{ matrix.python-version }} | |
| fail_ci_if_error: true | |