Skip to content

Bump less-action/reusables from 8 to 10 #103

Bump less-action/reusables from 8 to 10

Bump less-action/reusables from 8 to 10 #103

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '33 16 * * 3' # https://crontab.guru/#33_16_*_*_3
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: Lint
uses: less-action/reusables/.github/workflows/pre-commit.yaml@v10
with:
python-version: "3.10"
check-build:
name: Check packaging
uses: less-action/reusables/.github/workflows/python-test-build.yaml@v10
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# 3.11
- python-version: "3.11-dev"
tox_env: "django41-py311"
- python-version: "3.11-dev"
tox_env: "django40-py311"
# 3.10
- python-version: "3.10"
tox_env: "django_main"
- python-version: "3.10"
tox_env: "django41-py310"
- python-version: "3.10"
tox_env: "django40-py310"
- python-version: "3.10"
tox_env: "django32-py310"
# 3.9
- python-version: "3.9"
tox_env: "django41-py39"
- python-version: "3.9"
tox_env: "django40-py39"
- python-version: "3.9"
tox_env: "django32-py39"
name: Test ${{ matrix.tox_env }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install tox
- name: Run tests
run: tox -e ${{ matrix.tox_env }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true
name: codecov-py${{ matrix.python-version }}
static-typing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- run: pip install tox
- name: Run mypy
run: tox -e mypy
check-migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- run: pip install tox
- name: Check migrations
run: tox -e check-migrations