Skip to content

Commit 1027ee6

Browse files
committed
More uv.
1 parent e833729 commit 1027ee6

3 files changed

Lines changed: 12 additions & 43 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v4
25-
- uses: actions/setup-python@v5
25+
- uses: astral-sh/setup-uv@v5
2626
with:
27-
python-version-file: .python-version
28-
allow-prereleases: true
29-
cache: pip
30-
- run: pip install tox-uv
31-
- run: tox -e typing
27+
enable-cache: true
28+
- run: uv run --extra typing mypy
29+
- run: nbqa mypy --ignore-missing-imports .
3230

3331
run-tests:
3432

@@ -43,12 +41,10 @@ jobs:
4341

4442
steps:
4543
- uses: actions/checkout@v4
46-
- uses: actions/setup-python@v5
44+
- uses: astral-sh/setup-uv@v5
4745
with:
4846
python-version: ${{ matrix.python-version }}
49-
cache: pip
50-
allow-prereleases: true
51-
- run: pip install tox-uv
47+
enable-cache: true
5248

5349
- if: matrix.os == 'ubuntu-latest'
5450
run: |
@@ -59,7 +55,7 @@ jobs:
5955

6056
- name: Run unit tests and doctests.
6157
shell: bash -l {0}
62-
run: tox -e test -- -m "unit or (not integration and not end_to_end)" --cov=src --cov=tests --cov-report=xml -n auto
58+
run: uv run --extra test pytest --nbmake -m "unit or (not integration and not end_to_end)" --cov=src --cov=tests --cov-report=xml -n auto
6359

6460
- name: Upload unit test coverage reports to Codecov with GitHub Action
6561
uses: codecov/codecov-action@v5
@@ -68,7 +64,7 @@ jobs:
6864

6965
- name: Run integration tests.
7066
shell: bash -l {0}
71-
run: tox -e test -- -m integration --cov=src --cov=tests --cov-report=xml -n auto
67+
run: uv run --extra test pytest --nbmake -m integration --cov=src --cov=tests --cov-report=xml -n auto
7268

7369
- name: Upload integration test coverage reports to Codecov with GitHub Action
7470
uses: codecov/codecov-action@v5
@@ -77,7 +73,7 @@ jobs:
7773

7874
- name: Run end-to-end tests.
7975
shell: bash -l {0}
80-
run: tox -e test -- -m end_to_end --cov=src --cov=tests --cov-report=xml -n auto
76+
run: uv run --extra test pytest --nbmake -m end_to_end --cov=src --cov=tests --cov-report=xml -n auto
8177

8278
- name: Upload end_to_end test coverage reports to Codecov with GitHub Action
8379
uses: codecov/codecov-action@v5

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ text = "MIT"
4646
name = "Tobias Raabe"
4747
email = "raabe@posteo.de"
4848

49-
[project.optional-dependencies]
49+
[dependency-groups]
5050
docs = [
5151
"furo",
52-
"ipython",
52+
"ipython>=8.13.2",
5353
"matplotlib",
5454
"myst-parser",
5555
"myst-nb",
@@ -86,7 +86,7 @@ Tracker = "https://github.com/pytask-dev/pytask/issues"
8686
pytask = "pytask:cli"
8787

8888
[tool.uv]
89-
dev-dependencies = ["tox-uv>=1.7.0", "pygraphviz;platform_system=='Linux'"]
89+
dev-dependencies = ["pygraphviz>=1.11;platform_system=='Linux'"]
9090

9191
[build-system]
9292
requires = ["hatchling", "hatch_vcs"]

tox.ini

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)