This repository was archived by the owner on Jul 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : API workflow
2+
3+ on : [push, pull_request]
4+
5+ env :
6+
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ name : Test python API
12+ defaults :
13+ run :
14+ working-directory : .
15+ steps :
16+ - uses : actions/checkout@v1
17+ - uses : actions/setup-python@v2
18+ with :
19+ python-version : ' 3.10'
20+ - name : Install requirements
21+ run : pip install -r requirements.txt
22+ - name : Run tests and collect coverage
23+ run : python -m pytest --cov=./ tests/test_sample.py --cov-report=xml:flagtwo.coverage.xml
24+ - name : Upload coverage reports to Codecov with GitHub Action
25+ uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ __pycache__/
77* .so
88
99.coverage
10+ .coverage *
1011coverage.xml
1112
1213# Distribution / packaging
Original file line number Diff line number Diff line change 1- dev_token = "681aa829-d9f3-4ee5-b319-ab3d64ca07ca "
1+ dev_token = "4a65d329-52c9-4830-a156-217973fb72de "
22production_token = ${PRODUCTION_TOKEN}
33
44test :
@@ -12,7 +12,7 @@ test.flagone:
1212 python3 -m pytest --cov=./ tests/test_number_two.py --cov-report=xml:flagone.coverage.xml
1313
1414dev.report :
15- ./dev.sh -t ${dev_token} -u " https://qa.codecov.dev " -U " --insecure " -F flagtwo -f flagtwo.coverage.xml
15+ ./codecov -t ${dev_token} -F flagtwo -f flagtwo.coverage.xml
1616
1717dev.report.flagone :
1818 ./dev.sh -t ${dev_token} -F flagone -f flagone.coverage.xml
@@ -48,9 +48,9 @@ production.partial:
4848 ${MAKE} production.report
4949
5050dev.download :
51- curl -s http ://localhost/bash > dev.sh
51+ curl -s https ://github.com/codecov/uploader/releases/download/v0.2.2/codecov-linux > dev.sh
5252 chmod +x ./dev.sh
5353
5454production.download :
55- curl -s https://codecov.io/bash > production.sh
55+ curl -s https://github.com/ codecov/uploader/releases/download/v0.2.2/codecov-linux > production.sh
5656 chmod +x ./production.sh
You can’t perform that action at this time.
0 commit comments