Bump sqlparse from 0.4.4 to 0.5.0 #44
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: Check | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
django-version: ["3.2", "4.0", "4.1", "4.2", "5.0"] | |
exclude: | |
# Python 3.11 is not supported until Django 4.1 | |
- python-version: "3.11" | |
django-version: "3.2" | |
- python-version: "3.11" | |
django-version: "4.0" | |
# Python <3.10 is not supported by Django 5.0+ | |
- python-version: "3.8" | |
django-version: "5.0" | |
- python-version: "3.9" | |
django-version: "5.0" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Poetry | |
run: pipx install poetry==1.3.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: Set up dependencies | |
run: | | |
poetry install | |
poetry run pip install "django~=${{ matrix.django-version }}.0" | |
- name: Run tests | |
run: poetry run ./runtests | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.11"] | |
django-version: ["3.2", "4.2", "5.0"] | |
exclude: | |
# Python <3.10 is not supported by Django 5.0+ | |
- python-version: "3.8" | |
django-version: "5.0" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Poetry | |
run: pipx install poetry==1.3.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: Set up dependencies | |
run: | | |
poetry install | |
poetry run pip install "django~=${{ matrix.django-version }}.0" | |
- name: Run linters | |
run: poetry run flake8 --jobs=auto --format=github | |
type-check: | |
name: Type Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.11"] | |
django-version: ["3.2", "4.2", "5.0"] | |
exclude: | |
# Python <3.10 is not supported by Django 5.0+ | |
- python-version: "3.8" | |
django-version: "5.0" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Poetry | |
run: pipx install poetry==1.3.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: Set up dependencies | |
run: | | |
poetry install | |
poetry run pip install "django~=${{ matrix.django-version }}.0" | |
- name: Run type checking | |
run: poetry run ./script/type-check |