Skip to content

flake8 -> ruff, ci updates #151

flake8 -> ruff, ci updates

flake8 -> ruff, ci updates #151

Workflow file for this run

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