Skip to content

Commit 5dbb127

Browse files
authored
use codecov github action to do retries (pydantic#1709)
1 parent 2440ab9 commit 5dbb127

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ jobs:
5353
ls -alh pydantic/
5454
5555
- name: test compiled and deps
56-
run: make test-codecov
56+
run: make test
57+
58+
- run: coverage xml
59+
- uses: codecov/[email protected]
60+
with:
61+
file: ./coverage.xml
62+
env_vars: COMPILED,DEPS,PYTHON,OS
5763
env:
5864
COMPILED: yes
5965
DEPS: yes
@@ -62,7 +68,13 @@ jobs:
6268
run: pip uninstall -y cython email-validator typing-extensions devtools python-dotenv
6369

6470
- name: test compiled without deps
65-
run: make test-codecov
71+
run: make test
72+
73+
- run: coverage xml
74+
- uses: codecov/[email protected]
75+
with:
76+
file: ./coverage.xml
77+
env_vars: COMPILED,DEPS,PYTHON,OS
6678
env:
6779
COMPILED: yes
6880
DEPS: no
@@ -74,7 +86,13 @@ jobs:
7486
ls -alh pydantic/
7587
7688
- name: test uncompiled without deps
77-
run: make test-codecov
89+
run: make test
90+
91+
- run: coverage xml
92+
- uses: codecov/[email protected]
93+
with:
94+
file: ./coverage.xml
95+
env_vars: COMPILED,DEPS,PYTHON,OS
7896
env:
7997
COMPILED: no
8098
DEPS: no

Makefile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ test-examples:
5757
@echo "running examples"
5858
@find docs/examples -type f -name '*.py' | xargs -I'{}' sh -c 'python {} >/dev/null 2>&1 || (echo "{} failed")'
5959

60-
.PHONY: test-codecov
61-
test-codecov: test
62-
ifeq (,$(wildcard ./codecov.sh))
63-
curl https://codecov.io/bash -o codecov.sh
64-
chmod +x codecov.sh
65-
endif
66-
./codecov.sh -e COMPILED,DEPS,PYTHON,OS
67-
rm .coverage coverage.xml
68-
6960
.PHONY: all
7061
all: lint mypy testcov
7162

0 commit comments

Comments
 (0)