Merge branch 'main' of github.com:scottprahl/miepython #23
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
| # yamllint disable rule:truthy | |
| --- | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: # allow manual triggering | |
| concurrency: # cancel stale CI runs on the same branch | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: Python ${{ matrix.python-version }} – ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.9", "3.12"] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip # built-in cache for wheels | |
| cache-dependency-path: | | |
| pyproject.toml | |
| - name: Install package (+tests) | |
| run: | | |
| python -m pip install --upgrade pip setuptools | |
| python -m pip install -e . | |
| python -m pip install pytest | |
| - name: Run pytest | |
| run: | | |
| python -m pytest tests/test_nojit.py | |
| python -m pytest tests/test_jit.py |