File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 63
63
architecture : x64
64
64
- name : Run tests
65
65
run : pipx run nox -s tests-${{ matrix.python }}
66
+ - name : Upload coverage to codecov
67
+ uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change @@ -14,18 +14,34 @@ jobs:
14
14
allow_failures :
15
15
- arch : ppc64le
16
16
17
+ addons :
18
+ apt :
19
+ packages :
20
+ - qemu-user-static
21
+
17
22
services :
18
23
- docker
19
24
20
25
notifications :
21
26
email : false
22
27
23
28
install :
29
+ - curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
30
+ - curl -fsSLo ${HOME}/codecov.SHA256SUM https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
31
+ - curl -fsSLo ${HOME}/codecov.SHA256SUM.sig https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
32
+ - curl -fsSLo ${HOME}/codecov https://uploader.codecov.io/latest/linux/codecov
33
+ - gpgv ${HOME}/codecov.SHA256SUM.sig ${HOME}/codecov.SHA256SUM
34
+ - pushd ${HOME} && shasum -a 256 -c codecov.SHA256SUM && popd
35
+ - chmod +x ${HOME}/codecov
36
+ - if [ "$(uname -m)" != "aarch64" ]; then qemu-x86_64-static ${HOME}/codecov --version; fi
24
37
- pip install nox
25
38
26
39
script :
27
40
- nox -s tests-3.9
28
41
42
+ after_success :
43
+ - if [ "$(uname -m)" != "aarch64" ]; then qemu-x86_64-static ${HOME}/codecov; fi
44
+
29
45
cache :
30
46
directories :
31
47
- $HOME/.cache/auditwheel_tests
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ def tests(session: nox.Session) -> None:
64
64
extras = "coverage" if RUNNING_CI else "test"
65
65
session .install ("-e" , f".[{ extras } ]" )
66
66
if RUNNING_CI :
67
- session .install ("codecov" )
68
67
posargs .extend (["--cov" , "auditwheel" , "--cov-branch" ])
69
68
# pull manylinux images that will be used.
70
69
# this helps passing tests which would otherwise timeout.
@@ -74,10 +73,7 @@ def tests(session: nox.Session) -> None:
74
73
session .run ("pytest" , "-s" , * posargs )
75
74
if RUNNING_CI :
76
75
session .run ("auditwheel" , "lddtree" , sys .executable )
77
- try :
78
- session .run ("codecov" )
79
- except nox .command .CommandFailed :
80
- pass # Ignore failures from codecov tool
76
+ session .run ("coverage" , "xml" , "-ocoverage.xml" )
81
77
82
78
83
79
def _build (session : nox .Session , dist : Path ) -> None :
You can’t perform that action at this time.
0 commit comments