Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Code quality

on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
lint:
name: Ruff
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
cache: pip
cache-dependency-path: requirements-dev.txt

- name: Install development dependencies
run: python -m pip install -r requirements-dev.txt

- name: Run Ruff
run: ruff check .

tests:
name: Pytest
needs: lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
cache: pip
cache-dependency-path: requirements-dev.txt

- name: Install development dependencies
run: python -m pip install -r requirements-dev.txt

- name: Run pytest
run: python -m pytest
Loading