File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Tests
2
2
3
3
on : [push, pull_request, workflow_dispatch]
4
4
5
+ permissions :
6
+ contents : read
7
+
5
8
env :
6
9
FORCE_COLOR : 1
7
10
@@ -16,25 +19,26 @@ jobs:
16
19
17
20
steps :
18
21
- uses : actions/checkout@v4
22
+ with :
23
+ persist-credentials : false
19
24
20
25
- name : Set up Python ${{ matrix.python-version }}
21
26
uses : actions/setup-python@v5
22
27
with :
23
28
python-version : ${{ matrix.python-version }}
24
29
allow-prereleases : true
25
- cache : pip
30
+
31
+ - name : Install uv
32
+ uses : hynek/setup-cached-uv@v2
33
+ with :
26
34
cache-dependency-path : |
27
35
.github/workflows/ci.yml
28
36
dev-requirements.txt
29
37
requirements.txt
30
38
31
- - name : Install dependencies
32
- run : |
33
- python3 -m pip install -U coverage tox
34
-
35
- - name : Tests
39
+ - name : Tox tests
36
40
run : |
37
- tox -e py
41
+ uvx --with tox-uv tox -e py
38
42
39
43
- name : Upload coverage
40
44
uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change 14
14
15
15
steps :
16
16
- uses : actions/checkout@v4
17
+ with :
18
+ persist-credentials : false
17
19
- uses : actions/setup-python@v5
18
20
with :
19
21
python-version : " 3.x"
20
- cache : pip
21
- - uses : pre-commit/action@v3.0.1
22
+ - uses : tox-dev/action-pre-commit-uv@v1
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ env_list =
5
5
py{312, 311, 310, 39}
6
6
7
7
[testenv]
8
+ deps =
9
+ -r dev-requirements.txt
8
10
pass_env =
9
11
FORCE_COLOR
10
- commands_pre =
11
- {envpython} -m pip install -U -r dev-requirements.txt
12
12
commands =
13
13
{envpython} -m pytest {posargs}
You can’t perform that action at this time.
0 commit comments