Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan committed Jan 5, 2024
1 parent 5e5fb07 commit 292e45c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@ name: CI
on: [push, pull_request]

jobs:
get-python-versions:
runs-on: ubuntu-latest
outputs:
python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }}
steps:
- uses: snok/latest-python-versions@v1
id: get-python-versions-action
with:
min-version: 3.8

ci:
runs-on: ubuntu-22.04
needs: [get-python-versions]
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
django-version: [3.2, 4.1, 4.2, "5.0"]
exclude:
# Django 3.2 only supports Python 3.6 to 3.10
- python-version: 3.11
django-version: 3.2
- python-version: 3.12
django-version: 3.2
# Django 5.0 only supports Python 3.10 to 3.12
- python-version: 3.8
django-version: 5.0
- python-version: 3.9
django-version: 5.0
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 292e45c

Please sign in to comment.