@@ -19,12 +19,14 @@ jobs:
19
19
redis-version : [6]
20
20
21
21
steps :
22
- - uses : " actions/checkout@v3 "
22
+ - uses : " actions/checkout@v4 "
23
23
24
- - uses : " actions /setup-python @v4"
24
+ - uses : " pdm-project /setup-pdm @v4"
25
25
with :
26
26
python-version : " ${{ matrix.python-version }}"
27
- allow-prereleases : true
27
+ allow-python-prereleases : true
28
+ cache : true
29
+ version : " 2.18.1"
28
30
29
31
- name : " Start Redis"
30
32
uses : " supercharge/redis-github-action@1.2.0"
@@ -33,37 +35,37 @@ jobs:
33
35
34
36
- name : " Run Tox"
35
37
run : |
36
- set -xe
37
- python -VV
38
- python -Im site
39
- python -Im pip install --upgrade pip wheel pdm
40
38
python -Im pip install --upgrade tox tox-gh-actions
41
39
python -Im tox
42
- - name : " Upload coverage data"
43
- uses : " actions/upload-artifact@v3"
40
+
41
+ - name : Upload coverage data
42
+ uses : actions/upload-artifact@v4
44
43
with :
45
- name : " coverage-data"
46
- path : " .coverage.*"
47
- if-no-files-found : " ignore"
44
+ name : coverage-data-${{ matrix.python-version }}
45
+ path : .coverage.*
46
+ if-no-files-found : ignore
47
+ include-hidden-files : true
48
48
49
49
coverage :
50
50
name : " Combine & check coverage."
51
51
needs : " tests"
52
52
runs-on : " ubuntu-latest"
53
53
54
54
steps :
55
- - uses : " actions/checkout@v3 "
55
+ - uses : " actions/checkout@v4 "
56
56
57
- - uses : " actions/setup-python@v4 "
57
+ - uses : " actions/setup-python@v5 "
58
58
with :
59
59
cache : " pip"
60
- python-version : " 3.11 "
60
+ python-version : " 3.12 "
61
61
62
62
- run : " python -Im pip install --upgrade coverage[toml]"
63
63
64
- - uses : " actions/download-artifact@v3"
64
+ - name : Download coverage data
65
+ uses : actions/download-artifact@v4
65
66
with :
66
- name : " coverage-data"
67
+ pattern : coverage-data-*
68
+ merge-multiple : true
67
69
68
70
- name : " Combine coverage"
69
71
run : |
@@ -81,13 +83,14 @@ jobs:
81
83
python -Im coverage report --fail-under=97
82
84
83
85
- name : " Upload HTML report."
84
- uses : " actions/upload-artifact@v3 "
86
+ uses : " actions/upload-artifact@v4 "
85
87
with :
86
88
name : " html-report"
87
89
path : " htmlcov"
88
90
if : always()
89
91
90
92
- name : " Make badge"
93
+ if : github.ref == 'refs/heads/main'
91
94
uses : " schneegans/dynamic-badges-action@v1.4.0"
92
95
with :
93
96
# GIST_TOKEN is a GitHub personal access token with scope "gist".
0 commit comments