introduce api tests for oonifindings #9
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: test ooniapi/oonirun | |
on: push | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install hatch | |
run: pip install hatch | |
- name: Run all tests | |
run: make test-cov | |
working-directory: ./ooniapi/services/oonirun/ | |
- name: Upload coverage to codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
flags: oonirun | |
working-directory: ./ooniapi/services/oonirun/ |