pyproject. fix rut version. #195
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: CI | |
| on: | |
| push: | |
| branches: [master, test] | |
| pull_request: | |
| branches: [master, test] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }}-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu, windows, macos] | |
| python-version: ['3.10', '3.11', '3.12', '3.13', 'pypy-3.11'] | |
| exclude: | |
| - os: windows | |
| python-version: pypy3 | |
| steps: | |
| - if: ${{ matrix.os == 'ubuntu' }} | |
| run: sudo apt-get install strace | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: uv sync --group dev | |
| # PyPy bundles cffi which declares pycparser as dependency but doesn't ship it | |
| - if: ${{ startsWith(matrix.python-version, 'pypy') }} | |
| run: uv pip install pycparser | |
| - run: uv run doit pyflakes | |
| - run: uv run doit codestyle | |
| - run: uv run rut -vv | |
| - if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.11' }} | |
| run: uv run doit coverage | |
| - if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.11' }} | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| fail_ci_if_error: false |