@@ -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 :
18
15
19
16
jobs :
20
17
18
+ run-type-checking :
19
+
20
+ name : Run tests for type-checking
21
+ runs-on : ubuntu-latest
22
+
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - uses : actions/setup-python@v5
26
+ 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
32
+
21
33
run-tests :
22
34
23
35
name : Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
@@ -33,18 +45,12 @@ jobs:
33
45
- uses : actions/checkout@v4
34
46
- uses : r-lib/actions/setup-tinytex@v2
35
47
if : runner.os != 'Windows'
36
- - uses : mamba-org /setup-micromamba@v1
48
+ - uses : actions /setup-python@v5
37
49
with :
38
- environment-name : gha-testing
39
- condarc : |
40
- channels:
41
- - nodefaults
42
- - conda-forge
43
- create-args : >-
44
- python=${{ matrix.python-version }}
45
- mamba
46
- tox-conda
47
- cache-environment : true
50
+ python-version : ${{ matrix.python-version }}
51
+ cache : pip
52
+ allow-prereleases : true
53
+ - run : pip install tox-uv
48
54
49
55
- name : Install MacOS dependencies.
50
56
if : runner.os == 'macOS'
@@ -56,26 +62,22 @@ jobs:
56
62
shell : bash -l {0}
57
63
run : tlmgr install import epstopdf biblatex biber
58
64
59
- - name : Install core dependencies.
60
- shell : bash -l {0}
61
- run : conda install -c conda-forge tox-conda coverage
62
-
63
65
# Unit, integration, and end-to-end tests.
64
66
65
67
- name : Run unit tests and doctests.
66
68
shell : bash -l {0}
67
69
run : tox -e pytest -- src tests -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
68
70
69
- - name : Upload coverage report for unit tests and doctests.
70
- if : runner.os == 'Linux' && matrix.python-version == '3.10'
71
- shell : bash -l {0}
72
- run : bash <(curl -s https://codecov.io/bash) -F unit -c
71
+ - name : Upload unit test coverage reports to Codecov with GitHub Action
72
+ uses : codecov/codecov-action@v4
73
+ with :
74
+ flags : unit
73
75
74
76
- name : Run end-to-end tests.
75
77
shell : bash -l {0}
76
78
run : tox -e pytest -- src tests -m end_to_end --cov=./ --cov-report=xml -n auto
77
79
78
- - name : Upload coverage reports of end-to-end tests.
79
- if : runner.os == 'Linux' && matrix.python-version == '3.10'
80
- shell : bash -l {0}
81
- run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
80
+ - name : Upload end_to_end test coverage reports to Codecov with GitHub Action
81
+ uses : codecov/codecov-action@v4
82
+ with :
83
+ flags : end_to_end
0 commit comments