Skip to content

Commit 27222ea

Browse files
committed
update linting and test CI
1 parent 7b200ca commit 27222ea

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,27 @@ jobs:
88
lint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: Set up Python
13-
uses: actions/setup-python@v2
14-
with:
15-
python-version: "3.11"
16-
- name: Install dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
pip install flake8 flake8-docstrings
20-
- name: Lint with flake8
21-
run: flake8 .
11+
- uses: actions/checkout@v5
12+
- uses: astral-sh/ruff-action@v3
13+
2214

2315
test:
2416
runs-on: ubuntu-latest
2517
steps:
26-
- uses: actions/checkout@v2
27-
- name: Set up Python
28-
uses: actions/setup-python@v2
29-
with:
30-
python-version: "3.11"
31-
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade pip
34-
pip install . --user
35-
- name: Test using unittests
36-
run: python -m unittest --failfast
18+
- uses: actions/checkout@v5
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
22+
with:
23+
version: "0.8.22"
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version-file: ".python-version"
29+
30+
- name: Install the project
31+
run: uv sync --locked --all-extras --dev
32+
33+
- name: Run tests
34+
run: uv run python -m unittest --failfast

0 commit comments

Comments
 (0)