Fix compilation of wheel on MacOS #315
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: tests | |
| on: | |
| push: | |
| branches: [ "main"] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| runs-on: ubuntu-24.04 | |
| container: osgeo/grass-gis:releasebranch_8_4-ubuntu | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| apt update | |
| apt install -y ca-certificates clang build-essential libomp-dev nodejs | |
| - uses: actions/checkout@v5 | |
| - name: Install uv and Python | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| $HOME/.local/bin/uv python install ${{ matrix.python-version }} | |
| - name: Pytest | |
| run: | | |
| $HOME/.local/bin/uv run --all-extras --python ${{ matrix.python-version }} pytest --cov=src --junitxml=junit/test-core-results.xml --cov-report=xml --cov-report=html tests/core | |
| $HOME/.local/bin/uv run --all-extras --python ${{ matrix.python-version }} pytest --cov=src --junitxml=junit/test-itzi-results.xml --cov-report=xml --cov-report=html tests/grass/test_itzi.py | |
| $HOME/.local/bin/uv run --all-extras --python ${{ matrix.python-version }} pytest --cov=src --junitxml=junit/test-bmi-results.xml --cov-report=xml --cov-report=html tests/grass/test_bmi.py | |
| $HOME/.local/bin/uv run --all-extras --python ${{ matrix.python-version }} pytest --cov=src --junitxml=junit/test-tutorial-results.xml --cov-report=xml --cov-report=html tests/grass/test_tutorial.py | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report-${{ matrix.python-version }} | |
| path: | | |
| htmlcov/ | |
| coverage.xml |