We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f4e6c commit 1bb98dfCopy full SHA for 1bb98df
.github/workflows/codecov.yml
@@ -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