Skip to content

Commit 9ee893e

Browse files
committed
Update test.yml workflow: expand Python version matrix, upgrade actions, and integrate uv
1 parent 7ad6086 commit 9ee893e

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: [3.7, 3.8, 3.9]
12+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1313
steps:
1414
- name: 🛎️ Checkout
15-
uses: actions/checkout@v3
16-
with:
17-
ref: ${{ github.head_ref }}
15+
uses: actions/checkout@v4
1816
- name: 🐍 Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
2018
with:
2119
python-version: ${{ matrix.python-version }}
20+
- name: 🔧 Set up uv
21+
uses: astral-sh/setup-uv@v5
2222
- name: 🦾 Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install ".[dev]"
26-
- name: 🧹 Lint with flake8
27-
run: |
28-
make check_code_quality
23+
run: uv sync --dev
2924
- name: 🧪 Test
30-
run: "python -m pytest ./test"
25+
run: uv run pytest test/

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ So far, **there is no types checking with mypy**. See [issue](https://github.com
5656
[`pytest`](https://docs.pytest.org/en/7.1.x/) is used to run our tests.
5757

5858
```bash
59-
export PYTHONPATH=src
60-
pytest
59+
pytest . -v
6160
```
6261

6362
### Publish on PyPi 🚀

0 commit comments

Comments
 (0)