diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index f038dc4..42da97e 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -1,26 +1,11 @@ name: Checks on: [push, pull_request] jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: 3.11 - - - name: Install dependencies - run: python3 -m pip install ".[dev]" - - - name: Check style - run: python3 -m ruff check . && ruff format --check . test: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 @@ -36,6 +21,21 @@ jobs: env: WAGSTAILS_TEST_ENV: true run: python3 -m pytest tests/ + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Install dependencies + run: python3 -m pip install ".[dev]" + + - name: Check style + run: python3 -m ruff check . && ruff format --check . docs: runs-on: ubuntu-latest env: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 638b0ac..43afb3b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.12 + rev: v0.2.0 hooks: - id: ruff-format - id: ruff