Application tests π§ͺ #60
Workflow file for this run
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: Application Tests | |
run-name: Application tests π§ͺ | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "db_query_profiler/**" | |
- "tests/**" | |
- poetry.lock | |
- .pre-commit-config.yaml | |
jobs: | |
version-testing: | |
name: Run tests over multiple Python and OS versions | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: ποΈ Check out repository | |
uses: actions/checkout@v3 | |
- name: π¦ Set up Poetry | |
run: pipx install poetry==1.5.1 | |
- name: π Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: π¨ Install dependencies | |
run: poetry install --with test | |
- name: β Run unit tests | |
run: poetry run pytest | |
- name: π Run end-to-end tests | |
run: poetry run python tests/end-to-end/end_to_end.py |