Skip to content

Commit 0dd24f0

Browse files
authored
chore: remove pypi codecov usage (#421)
* chore: remove pypi codecov usage
1 parent f680fc8 commit 0dd24f0

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ jobs:
6363
architecture: x64
6464
- name: Run tests
6565
run: pipx run nox -s tests-${{ matrix.python }}
66+
- name: Upload coverage to codecov
67+
uses: codecov/codecov-action@v3

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,34 @@ jobs:
1414
allow_failures:
1515
- arch: ppc64le
1616

17+
addons:
18+
apt:
19+
packages:
20+
- qemu-user-static
21+
1722
services:
1823
- docker
1924

2025
notifications:
2126
email: false
2227

2328
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
2437
- pip install nox
2538

2639
script:
2740
- nox -s tests-3.9
2841

42+
after_success:
43+
- if [ "$(uname -m)" != "aarch64" ]; then qemu-x86_64-static ${HOME}/codecov; fi
44+
2945
cache:
3046
directories:
3147
- $HOME/.cache/auditwheel_tests

noxfile.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def tests(session: nox.Session) -> None:
6464
extras = "coverage" if RUNNING_CI else "test"
6565
session.install("-e", f".[{extras}]")
6666
if RUNNING_CI:
67-
session.install("codecov")
6867
posargs.extend(["--cov", "auditwheel", "--cov-branch"])
6968
# pull manylinux images that will be used.
7069
# this helps passing tests which would otherwise timeout.
@@ -74,10 +73,7 @@ def tests(session: nox.Session) -> None:
7473
session.run("pytest", "-s", *posargs)
7574
if RUNNING_CI:
7675
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")
8177

8278

8379
def _build(session: nox.Session, dist: Path) -> None:

0 commit comments

Comments
 (0)