Skip to content

Commit 0fd6504

Browse files
committed
github workflows: update unit test job to use uv and ruff
1 parent 5340ec3 commit 0fd6504

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/unittests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,21 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v4
1313
- name: Set up Python 3.7
14-
uses: actions/setup-python@v1
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: 3.7
1717
- name: Install dependencies
1818
run: |
19-
python -m pip install --upgrade pip
20-
pip install .
21-
pip install -e .[test]
22-
- name: Lint with flake8
19+
sudo apt install pipx
20+
pipx install uv
21+
- name: Check formatting with ruff
2322
run: |
24-
tox -e pep8
23+
uvx ruff format --diff
24+
- name: Lint with ruff
25+
run: |
26+
uvx ruff check
2527
- name: Run unit tests
2628
run: |
27-
tox -e py37
29+
uv run pytest

0 commit comments

Comments
 (0)