Skip to content

Merge pull request #17 from baluyotraf/fix/postgres-nonparam #38

Merge pull request #17 from baluyotraf/fix/postgres-nonparam

Merge pull request #17 from baluyotraf/fix/postgres-nonparam #38

Workflow file for this run

name: qa
on:
push:
branches:
- main
pull_request:
jobs:
lint-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key:
pre-commit-3|${{ env.pythonLocation }}|${{
hashFiles('.pre-commit-config.yaml') }}
- uses: abatilo/actions-poetry@v2
- run: python -m pip install pre-commit
- run: poetry install
- run:
poetry run pre-commit run --show-diff-on-failure --color=always --all
test:
needs: lint-format
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python_version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- uses: abatilo/actions-poetry@v2
- run: python -m pip install tox-gh>=1.2
- run: poetry install --no-root && poetry run tox