Skip to content

Add ruff linter to project #8

Add ruff linter to project

Add ruff linter to project #8

Workflow file for this run

name: Run tests
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install ruff
run: |
python -m pip install --upgrade pip
pip install ruff==0.3.4
- name: Run ruff check
run: ruff check --output-format=github
run-tests:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pytest
run: |
pytest