diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 0b6f725..6d65e69 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -9,39 +9,18 @@ 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" @@ -49,8 +28,6 @@ jobs: - 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" @@ -58,8 +35,6 @@ jobs: - 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" @@ -67,8 +42,6 @@ jobs: - 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" @@ -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 }} diff --git a/README.md b/README.md index 4dbdbdd..920cf36 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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!
Feel free to check [issues page](https://github.com/jefftriplett/python-github-actions-matrix-demo/issues). +Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/jefftriplett/python-github-actions-matrix-demo/issues). ## Show your support