Skip to content

github workflows: update unit test job to use uv and ruff #29

github workflows: update unit test job to use uv and ruff

github workflows: update unit test job to use uv and ruff #29

Workflow file for this run

---
name: Unit tests
"on": [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install dependencies
run: |
sudo apt install pipx
pipx install uv
- name: Check formatting with ruff
run: |
uvx ruff format --diff
- name: Lint with ruff
run: |
uvx ruff check
- name: Run unit tests
run: |
uv run pytest