Skip to content

Application tests πŸ§ͺ #70

Application tests πŸ§ͺ

Application tests πŸ§ͺ #70

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