25
25
mv coverage.lcov base-coverage.lcov
26
26
27
27
- name : Upload code coverage for base branch
28
- uses : actions/upload-artifact@v3
28
+ uses : actions/upload-artifact@v4
29
29
with :
30
30
name : base-coverage.lcov
31
31
path : ./base-coverage.lcov
@@ -57,15 +57,15 @@ jobs:
57
57
run : pytest --cov=src --cov-report=lcov
58
58
59
59
- name : Upload code coverage
60
- uses : actions/upload-artifact@v3
60
+ uses : actions/upload-artifact@v4
61
61
with :
62
- name : coverage.lcov
62
+ name : coverage-${{ matrix.python }}
63
63
path : ./coverage.lcov
64
64
65
65
- name : Analyse with MyPy
66
66
run : mypy src
67
67
68
- test-with-unpinned-deps :
68
+ test-with-unpinned-deps :
69
69
runs-on : ubuntu-latest
70
70
strategy :
71
71
matrix :
@@ -88,25 +88,26 @@ test-with-unpinned-deps:
88
88
- name : Format with Ruff
89
89
if : success() || failure()
90
90
run : ruff format --check .
91
+
92
+ - name : Analyse with MyPy
93
+ if : success() || failure()
94
+ run : mypy src
91
95
92
96
- name : Test with pytest
93
97
if : success() || failure()
94
98
run : pytest --cov=src --cov-report=lcov
95
-
96
- - name : Analyse with MyPy
97
- run : mypy src
98
99
99
100
coverage :
100
101
runs-on : ubuntu-latest
101
102
needs : [base_coverage, test]
102
103
steps :
103
104
- name : Download code coverage report
104
- uses : actions/download-artifact@v3
105
+ uses : actions/download-artifact@v4
105
106
with :
106
- name : coverage.lcov
107
+ name : coverage-3.12
107
108
108
109
- name : Download code coverage report for base branch
109
- uses : actions/download-artifact@v3
110
+ uses : actions/download-artifact@v4
110
111
with :
111
112
name : base-coverage.lcov
112
113
0 commit comments