Skip to content

Commit a3e304d

Browse files
committed
adjusted pytest yaml gh actions config file
1 parent 01871e4 commit a3e304d

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/python-tests.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,30 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.12]
14+
python-version: [ "3.14" ]
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v3
1822

1923
- name: Set up Python
20-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2125
with:
2226
python-version: ${{ matrix.python-version }}
2327

24-
- name: Install dependencies
28+
- name: Install dependencies from uv.lock
2529
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
pip install pytest
30+
uv sync --frozen --dev
2931
3032
- name: Run tests with coverage
3133
run: |
32-
pytest --cov=moddata tests/
33-
coverage xml
34+
uv run pytest --cov=moddata tests/
35+
uv run coverage xml
3436
3537
- name: Upload coverage to Codecov
36-
uses: codecov/codecov-action@v3
38+
uses: codecov/codecov-action@v4
3739
with:
38-
token: ${{ secrets.CODECOV_TOKEN }} # only needed for private repos
40+
token: ${{ secrets.CODECOV_TOKEN }} # only needed for private repos

0 commit comments

Comments
 (0)