Skip to content

Commit 1bb98df

Browse files
authored
Create codecov.yml
1 parent 97f4e6c commit 1bb98df

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: API workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: Test python API
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Install requirements
12+
run: pip install -r requirements.txt
13+
- name: Run tests and collect coverage
14+
run: pytest --cov .
15+
- name: Upload coverage reports to Codecov
16+
run: |
17+
# Replace `linux` below with the appropriate OS
18+
# Options are `alpine`, `linux`, `macos`, `windows`
19+
curl -Os https://uploader.codecov.io/latest/linux/codecov
20+
chmod +x codecov
21+
./codecov -t ${CODECOV_TOKEN}

0 commit comments

Comments
 (0)