@@ -5,9 +5,6 @@ concurrency:
5
5
group : ${{ github.head_ref || github.run_id }}
6
6
cancel-in-progress : true
7
7
8
- env :
9
- CONDA_EXE : mamba
10
-
11
8
on :
12
9
push :
13
10
branches :
@@ -25,13 +22,10 @@ jobs:
25
22
26
23
steps :
27
24
- uses : actions/checkout@v4
28
- - uses : actions /setup-python @v5
25
+ - uses : astral-sh /setup-uv @v5
29
26
with :
30
- python-version-file : .python-version
31
- allow-prereleases : true
32
- cache : pip
33
- - run : pip install tox-uv
34
- - run : tox -e typing
27
+ enable-cache : true
28
+ - run : uv run --extra typing mypy
35
29
36
30
run-tests :
37
31
@@ -48,18 +42,16 @@ jobs:
48
42
- uses : actions/checkout@v4
49
43
- uses : r-lib/actions/setup-tinytex@v2
50
44
if : runner.os != 'Windows'
51
- - uses : actions /setup-python @v5
45
+ - uses : astral-sh /setup-uv @v5
52
46
with :
47
+ enable-cache : true
53
48
python-version : ${{ matrix.python-version }}
54
- cache : pip
55
- allow-prereleases : true
56
- - run : pip install tox
57
49
58
50
# Unit, integration, and end-to-end tests.
59
51
60
52
- name : Run unit tests and doctests.
61
53
shell : bash -l {0}
62
- run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
54
+ run : uv run --extra test pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
63
55
64
56
- name : Upload coverage report for unit tests and doctests.
65
57
if : runner.os == 'Linux' && matrix.python-version == '3.10'
68
60
69
61
- name : Run end-to-end tests.
70
62
shell : bash -l {0}
71
- run : tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
63
+ run : uv run --extra test pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
72
64
73
65
- name : Upload coverage reports of end-to-end tests.
74
66
if : runner.os == 'Linux' && matrix.python-version == '3.10'
0 commit comments