use class method for processors #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |