Refactor piecewise polynomial (implement GEP-8) #3458
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: main | |
| # Automatically cancel a previous run. | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| run-ty: | |
| name: Run ty | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: v0.63.2 | |
| cache: true | |
| cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
| frozen: true | |
| environments: py314 | |
| - name: Run ty | |
| run: pixi run -e py314 ty | |
| shell: bash -el {0} | |
| run-tests: | |
| name: Run tests for ${{ matrix.os }} on ${{ matrix.environment }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| environment: | |
| - py311 | |
| - py312 | |
| - py313 | |
| - py314 | |
| - py314-jax | |
| exclude: | |
| - os: macos-latest | |
| environment: py311 | |
| - os: macos-latest | |
| environment: py312 | |
| - os: macos-latest | |
| environment: py313 | |
| - os: windows-latest | |
| environment: py311 | |
| - os: windows-latest | |
| environment: py312 | |
| - os: windows-latest | |
| environment: py313 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: v0.62.2 | |
| cache: true | |
| cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
| frozen: true | |
| environments: ${{ matrix.environment }} | |
| - name: Run tests on Linux (with NumPy backend and without coverage) | |
| if: >- | |
| matrix.environment == 'py311' || | |
| matrix.environment == 'py312' || | |
| matrix.environment == 'py313' | |
| run: pixi run -e ${{ matrix.environment }} tests | |
| shell: bash -el {0} | |
| - name: Run tests on Linux (with NumPy backend and coverage) | |
| if: runner.os == 'Linux' && matrix.environment == 'py314' | |
| run: pixi run -e ${{ matrix.environment }} tests --cov --cov-report=xml | |
| shell: bash -el {0} | |
| - name: Run tests on MacOS / Windows (with NumPy backend and without coverage) | |
| if: runner.os != 'Linux' | |
| run: pixi run -e ${{ matrix.environment }} tests | |
| shell: bash -el {0} | |
| - name: Run tests with JAX backend | |
| if: matrix.environment == 'py314-jax' | |
| run: pixi run -e ${{ matrix.environment }} tests-jax | |
| shell: bash -el {0} | |
| - name: Upload coverage reports | |
| if: runner.os == 'Linux' && matrix.environment == 'py314' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |