From cec9698326c504b39e0efacbc94338b6bf7121f0 Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Fri, 25 Nov 2022 19:31:23 -0500 Subject: Run tests in both Python 3.10 and 3.11 --- .github/workflows/test.yml | 7 +++++-- .gitignore | 1 + .pre-commit-config.yaml | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41a0899..dbee8e3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,9 @@ on: [push, pull_request] jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11"] services: postgres: image: postgres:15 @@ -16,10 +19,10 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} cache: pip - name: Install dependencies run: | diff --git a/.gitignore b/.gitignore index e296653..8308fed 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.psql *.pyc *.sqlite3 +.idea/* .venv .vscode /*.env diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 940fbbc..e41f599 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,6 @@ repos: rev: 22.10.0 hooks: - id: black - language_version: python3.10 - repo: https://github.com/pycqa/isort rev: 5.10.1 -- cgit v1.2.3