Fix various linter issues #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: Run tests | |
on: | |
push: | |
paths: | |
- .github/workflows/tests.yml | |
- tests/** | |
- src/**/*.py | |
workflow_dispatch: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10.12" | |
cache: pip | |
- name: Install connector dependencies | |
run: pip install -r src/requirements.txt | |
- name: Install test dependencies | |
run: pip install -r tests/requirements.txt | |
- name: Run doctests | |
working-directory: tests | |
# TODO: Failure doesn't make job fail: | |
run: python3 run_doctests.py | |
- name: Run unit tests | |
working-directory: tests/unit | |
# TODO: Coverage reports: | |
run: pytest |