Skip to content

Update workflows and readme #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 20 additions & 29 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,66 +9,39 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
# By default, GitHub will maximize the number of jobs run in parallel
# depending on the available runners on GitHub-hosted virtual machines.
# max-parallel: 8
fail-fast: false
matrix:
include:
- django-version: "1.11.0"
python-version: "2.7"
- django-version: "1.11.0"
python-version: "3.5"
- django-version: "1.11.0"
python-version: "3.6"
- django-version: "1.11.0"
python-version: "3.7"
# Django 2.0
- django-version: "2.0.0"
python-version: "3.5"
- django-version: "2.0.0"
python-version: "3.6"
- django-version: "2.0.0"
python-version: "3.7"
# Django 2.1
- django-version: "2.1.0"
python-version: "3.5"
- django-version: "2.1.0"
python-version: "3.6"
- django-version: "2.1.0"
python-version: "3.7"
# Django 2.2
- django-version: "2.2.0"
python-version: "3.5"
- django-version: "2.2.0"
python-version: "3.6"
- django-version: "2.2.0"
python-version: "3.7"
- django-version: "2.2.0"
python-version: "3.8"
- django-version: "2.2.0"
python-version: "3.9"
# Django 3.0
- django-version: "3.0.0"
python-version: "3.6"
- django-version: "3.0.0"
python-version: "3.7"
- django-version: "3.0.0"
python-version: "3.8"
- django-version: "3.0.0"
python-version: "3.9"
# Django 3.1
- django-version: "3.1.0"
python-version: "3.6"
- django-version: "3.1.0"
python-version: "3.7"
- django-version: "3.1.0"
python-version: "3.8"
- django-version: "3.1.0"
python-version: "3.9"
# Django 3.2
- django-version: "3.2.0"
python-version: "3.6"
- django-version: "3.2.0"
python-version: "3.7"
- django-version: "3.2.0"
Expand All @@ -84,12 +57,30 @@ jobs:
python-version: "3.9"
- django-version: "4.0.0"
python-version: "3.10"
# Django 4.2
- django-version: "4.2.0"
python-version: "3.8"
- django-version: "4.2.0"
python-version: "3.9"
- django-version: "4.2.0"
python-version: "3.10"
- django-version: "4.2.0"
python-version: "3.11"
- django-version: "4.2.0"
python-version: "3.12"
# Django 5.0
- django-version: "5.0.0"
python-version: "3.10"
- django-version: "5.0.0"
python-version: "3.11"
- django-version: "5.0.0"
python-version: "3.12"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

> GitHub Actions Matrix example with Python and Django

This repository is an example of how to use [GitHub Actions Matrix feature](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix).
This repository is an example of how to use [GitHub Actions Matrix feature](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix).

Our demo uses the `matrix` feature to install:
- Python versions: 2.7, 3.6, 3.7, 3.8, 3.9, and 3.10
- Django versions: 1.11 (LTS), 2.0, 2.1, 2.2 (LTS), 3.0, 3.1, 3.2 (LTS), and 4.0
- Python versions: 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12
- Django versions: 1.11 (LTS), 2.0, 2.1, 2.2 (LTS), 3.0, 3.1, 3.2 (LTS), 4.0, 4.2(LTS) and 5.0

See the [actions.yml workflow](https://github.com/jefftriplett/python-github-actions-matrix-demo/blob/main/.github/workflows/actions.yml) for the matrix example.

Expand All @@ -34,7 +34,7 @@ See the [actions.yml workflow](https://github.com/jefftriplett/python-github-act

## :handshake: Contributing

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/jefftriplett/python-github-actions-matrix-demo/issues).
Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/jefftriplett/python-github-actions-matrix-demo/issues).

## Show your support

Expand Down