17
17
build :
18
18
runs-on : ${{ matrix.os }}
19
19
strategy :
20
+ fail-fast : false
20
21
matrix :
21
22
os : [ubuntu-20.04, windows-latest, macos-latest]
22
23
python-version : ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
@@ -26,16 +27,22 @@ jobs:
26
27
uses : actions/setup-python@v5
27
28
with :
28
29
python-version : ${{ matrix.python-version }}
30
+ - name : Setup uv
31
+ uses : yezz123/setup-uv@v4
32
+ if : matrix.python-version != '3.7'
29
33
- name : Set up Miniconda
30
34
uses : conda-incubator/setup-miniconda@v3
31
35
with :
32
36
auto-update-conda : true
33
37
python-version : ${{ matrix.python-version }}
34
38
miniforge-variant : Mambaforge
35
39
use-mamba : true
36
- - name : Install Nox-under-test
37
- run : |
38
- python -m pip install --disable-pip-version-check .
40
+ - name : Install Nox-under-test (uv)
41
+ if : matrix.python-version != '3.7'
42
+ run : uv pip install --system .
43
+ - name : Install Nox-under-test (pip)
44
+ if : matrix.python-version == '3.7'
45
+ run : python -m pip install --disable-pip-version-check .
39
46
- name : Run tests on ${{ matrix.os }} (tox <4)
40
47
run : nox --non-interactive --error-on-missing-interpreter --session "tests(python='${{ matrix.python-version }}', tox_version='<4')" -- --full-trace
41
48
- name : Run tox-to-nox tests on ${{ matrix.os }} (tox latest)
56
63
uses : actions/setup-python@v5
57
64
with :
58
65
python-version : " 3.11"
66
+ - name : Setup uv
67
+ uses : yezz123/setup-uv@v4
59
68
- name : Install Nox-under-test
60
- run : |
61
- python -m pip install --disable-pip-version-check .
69
+ run : uv pip install --system .
62
70
- name : Download individual coverage reports
63
71
uses : actions/download-artifact@v4
64
72
with :
78
86
with :
79
87
python-version : 3.9
80
88
- name : Install Nox-under-test
81
- run : |
82
- python -m pip install --disable-pip-version-check .
89
+ run : python -m pip install --disable-pip-version-check .
83
90
- name : Lint
84
91
run : nox --non-interactive --error-on-missing-interpreter --session "lint"
85
92
docs :
90
97
uses : actions/setup-python@v5
91
98
with :
92
99
python-version : 3.9
100
+ - name : Setup uv
101
+ uses : yezz123/setup-uv@v4
93
102
- name : Install Nox-under-test
94
- run : |
95
- python -m pip install --disable-pip-version-check .
103
+ run : uv pip install --system .
96
104
- name : Docs
97
105
run : nox --non-interactive --error-on-missing-interpreter --session "docs"
98
106
deploy :
0 commit comments