Skip to content

Commit

Permalink
ci: add django versions to CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoettle authored and jheld committed Aug 30, 2024
1 parent 695c469 commit 94b2c57
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
name: CI

on: [pull_request, workflow_dispatch]
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

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

ci:
name: CI
needs: [get-python-versions]
runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
max-parallel: 4
matrix:
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
django-version: [4.2, '5.0', 5.1]
exclude:
# Django 5.0 and 5.1 only support Python 3.10 to 3.12
- python-version: 3.8
django-version: 5.0
- python-version: 3.9
django-version: 5.0
- python-version: 3.8
django-version: 5.1
- python-version: 3.9
django-version: 5.1

steps:
- name: Checkout ${{ github.repository }}
Expand Down Expand Up @@ -55,6 +59,7 @@ jobs:
id: poetry-install
run: |
poetry install --no-interaction --no-root
poetry run pip install Django==${{ matrix.django-version }}.*
echo "django_version=$(poetry run django-admin --version)" >> $GITHUB_OUTPUT
- name: Run pre-commit
Expand Down

11 comments on commit 94b2c57

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL82922373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 3.744s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 3.551s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL82922273% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 3.536s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 3.653s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 4.118s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 3.415s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 3.682s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 4.143s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 4.276s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 4.873s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL83122373% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
50 0 💤 0 ❌ 0 🔥 4.776s ⏱️

Please sign in to comment.