-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (26 loc) · 989 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: testing
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Tests
steps:
- uses: actions/checkout@v1
- name: Install
run: cd python && pip install -e .
- name: Install packages needed for tests
run: pip install pytest pytest-asyncio pytest-cov boto3 kachery_cloud
- name: Run non-api tests
run: cd python && pytest -m "not api" tests/ # make sure we are not depending on any of the additional packages in requirements.txt
- name: Install packages needed for api tests
run: pip install -r requirements.txt
- name: Install other packages needed for api tests
run: pip install httpx
- name: Run tests and collect coverage
run: cd python && pytest --cov protocaas --cov-report=xml --cov-report=term tests/
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
file: ./python/coverage.xml
flags: unittests