Skip to content

Commit

Permalink
cicd: update versions (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Mar 20, 2024
1 parent 50d9746 commit 36e44e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36e44e7

Please sign in to comment.