Add poetry tests group and add IBM DB2 instructions #45
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: Tests | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- '**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- '**' | |
jobs: | |
Linting: | |
name: "Linting - pre-commit hooks - Python 3.9" | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Linting - Run pre-commit checks | |
uses: pre-commit/action@v3.0.0 | |
Tests: | |
name: "${{ matrix.os }} / ${{ matrix.python-version }}" | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [Ubuntu] | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
uses: ./.github/actions/setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
poetry-flags: --all-extras --with=tests | |
- name: Start Docker Compose | |
uses: isbang/compose-action@v1.4.1 | |
with: | |
compose-file: ./docker-compose.yaml | |
- name: Wait for Docker Servers | |
timeout-minutes: 1 | |
shell: bash | |
run: | | |
until bash ./.github/workflows/resources/docker_compose_ready.sh; do | |
sleep 2 | |
done | |
- name: Run Tests | |
uses: ./.github/actions/test | |
with: | |
arguments: --postgres |