flake8 -> ruff, ci updates #151
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.11.0, 3.12.0, 3.13.0] | |
| os: [ubuntu-24.04, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install test dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| cp coldcore coldcore.py | |
| echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV | |
| - name: yapf | |
| run: yapf --diff coldcore | |
| - name: ruff | |
| run: | | |
| ruff check coldcore | |
| ruff check test | |
| - name: pytest | |
| run: | | |
| pytest -vv test/ | |
| - name: mypy | |
| run: | | |
| mypy coldcore |