chore(deps-dev): bump the python-deps group across 1 directory with 2 updates #2131
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: Build and Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: # Any pull request | |
| workflow_dispatch: # Allow manual triggering of the workflow | |
| schedule: | |
| - cron: "0 0 * * *" # Run at midnight UTC every day | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macos-latest | |
| python-version: | |
| - "3.10" | |
| - "3.14" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install GL libraries for offscreen rendering | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libosmesa6-dev libgl1-mesa-dev | |
| - run: uv sync --extra fem -v | |
| - run: uv run python -c "import mmgpy" | |
| - name: Run tests with coverage | |
| run: uv run pytest --ignore=tests/examples_test.py --ignore=tests/docs_test.py --cov=src/mmgpy --cov-report=term-missing --cov-report=xml --junitxml=junit.xml -o junit_family=legacy | |
| - name: Test documentation code blocks | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' | |
| env: | |
| PYVISTA_OFF_SCREEN: "true" | |
| MPLBACKEND: Agg | |
| run: uv run pytest tests/docs_test.py -v | |
| - name: Run examples | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' | |
| env: | |
| MPLBACKEND: Agg | |
| PYVISTA_OFF_SCREEN: "true" | |
| run: uv run pytest tests/examples_test.py -v | |
| - name: Upload coverage to Codecov | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage.xml | |
| fail_ci_if_error: false | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: junit.xml |