run test in github actions (and with pytest) #15
This file contains 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: Code quality | |
on: | |
push: | |
env: | |
UV_SYSTEM_PYTHON: 1 | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Acquire sources | |
uses: actions/checkout@v4.1.1 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
- name: Setup Python | |
uses: actions/setup-python@v5.0.0 | |
with: | |
python-version: "3.12" | |
architecture: x64 | |
- name: Install dev dependencies | |
run: uv pip install -r dev-requirements.txt | |
- name: Run ruff | |
run: uv run pytest -v |