Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit cca48ef

Browse files
try github actions without app integration
1 parent b39d8f8 commit cca48ef

4 files changed

Lines changed: 30 additions & 1892 deletions

File tree

.github/workflows/api.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ __pycache__/
77
*.so
88

99
.coverage
10+
.coverage*
1011
coverage.xml
1112

1213
# Distribution / packaging

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dev_token = "681aa829-d9f3-4ee5-b319-ab3d64ca07ca"
1+
dev_token = "4a65d329-52c9-4830-a156-217973fb72de"
22
production_token = ${PRODUCTION_TOKEN}
33

44
test:
@@ -12,7 +12,7 @@ test.flagone:
1212
python3 -m pytest --cov=./ tests/test_number_two.py --cov-report=xml:flagone.coverage.xml
1313

1414
dev.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

1717
dev.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

5050
dev.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

5454
production.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

0 commit comments

Comments
 (0)