Use AGENTS.md, update hooks and rules. #427
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| # Automatically cancel a previous run. | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| run-tests: | |
| name: Run tests for ${{ matrix.os }} on ${{ matrix.environment }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-15-intel # intel | |
| - macos-latest # arm | |
| - windows-latest | |
| environment: | |
| - py311 | |
| - py312 | |
| - py313 | |
| - py314 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: v0.65.0 | |
| cache: true | |
| cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
| frozen: true | |
| environments: ${{ matrix.environment }} | |
| - name: Run all tests except Linux and py314. | |
| if: runner.os != 'Linux' || matrix.environment != 'py314' | |
| shell: bash -el {0} | |
| run: pixi run -e ${{ matrix.environment }} tests | |
| - name: Run tests with codecov on Linux and py314. | |
| if: runner.os == 'Linux' && matrix.environment == 'py314' | |
| shell: bash -el {0} | |
| run: pixi run -e ${{ matrix.environment }} tests-with-cov | |
| - name: Upload coverage report. | |
| if: runner.os == 'Linux' && matrix.environment == 'py314' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| 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.65.0 | |
| 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} |