github workflows: update unit test job to use uv and ruff #29
Workflow file for this run
This file contains hidden or 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: 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 |