Skip to content

Dev 846 release ci fix #1

Dev 846 release ci fix

Dev 846 release ci fix #1

Workflow file for this run

name: Test
on:
push:
branches:
- "**" # every branch
- "!gh-pages" # exclude gh-pages branch
- "!stage*" # exclude branches beginning with stage
pull_request:
branches:
- "**" # every branch
- "!gh-pages" # exclude gh-pages branch
- "!stage*" # exclude branches beginning with stage
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
# enforce the same check as pre-commit
# but only run important checks
- uses: pre-commit/[email protected]
with:
extra_args: codespell --all-files
- uses: pre-commit/[email protected]
with:
extra_args: black --all-files
- uses: pre-commit/[email protected]
with:
extra_args: flake8 --all-files
test:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
py_ver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
mysql_ver: ["8.0"]
include:
- py_ver: "3.9"
mysql_ver: "5.7"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{matrix.py_ver}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.py_ver}}
- name: Integration test
env:
PY_VER: ${{matrix.py_ver}}
MYSQL_VER: ${{matrix.mysql_ver}}
# taking default variables set in docker-compose.yaml to sync with local test
run: |
export HOST_UID=$(id -u)
docker compose --profile test up --quiet-pull --build --exit-code-from djtest djtest