File tree Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,15 @@ 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
8
11
jobs :
9
12
test :
10
- name : test w/ Python ${{ matrix.python-version }}
13
+ name : Python ${{ matrix.python-version }}
11
14
runs-on : ubuntu-latest
12
15
strategy :
13
16
fail-fast : false
@@ -17,23 +20,26 @@ jobs:
17
20
18
21
steps :
19
22
- uses : actions/checkout@v4
23
+ with :
24
+ persist-credentials : false
25
+
20
26
- name : Set up Python ${{ matrix.python-version }}
21
27
uses : actions/setup-python@v5
22
28
with :
23
29
python-version : ${{ matrix.python-version }}
24
30
allow-prereleases : true
25
- cache : pip
31
+
32
+ - name : Install uv
33
+ uses : hynek/setup-cached-uv@v2
34
+ with :
26
35
cache-dependency-path : |
27
36
requirements.txt
28
37
dev-requirements.txt
29
- - name : Install tox
38
+
39
+ - name : Tox tests
30
40
run : |
31
- python -m pip install tox
32
- - name : Run Tests
33
- env :
34
- # run against the current Python interpreter
35
- TOXENV : py
36
- run : tox
41
+ uvx --with tox-uv tox -e py
42
+
37
43
- uses : codecov/codecov-action@v4
38
44
if : always()
39
45
with :
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/[email protected]
22
+ - uses : tox-dev/action-pre-commit-uv@v1
You can’t perform that action at this time.
0 commit comments