From 402ccbe24c938867923867d3f1d5ec4191cf4ceb Mon Sep 17 00:00:00 2001 From: Skycode Date: Sat, 9 Nov 2024 03:21:16 +0100 Subject: [PATCH 1/4] update django version and workflows --- .github/workflows/actions.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 0b6f725..3bdf4c6 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -9,9 +9,6 @@ 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: @@ -84,12 +81,32 @@ 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.9" + - 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 }} From 6b33c06c1b89caff1fbeaa2b296aaa4288ba9893 Mon Sep 17 00:00:00 2001 From: Skycode Date: Sat, 9 Nov 2024 03:24:44 +0100 Subject: [PATCH 2/4] update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4dbdbdd..7220e43 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: 2.7, 3.6, 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 From af9bb89b1abb38bedd00b66270d5c40e6f6bbdf8 Mon Sep 17 00:00:00 2001 From: Skycode Date: Sat, 9 Nov 2024 22:12:49 +0100 Subject: [PATCH 3/4] Fix errors in pr and remove old versions of python --- .github/workflows/actions.yml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 3bdf4c6..6d65e69 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -12,33 +12,15 @@ jobs: 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" @@ -46,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" @@ -55,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" @@ -64,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" @@ -93,8 +69,6 @@ jobs: - django-version: "4.2.0" python-version: "3.12" # Django 5.0 - - django-version: "5.0.0" - python-version: "3.9" - django-version: "5.0.0" python-version: "3.10" - django-version: "5.0.0" From dcb514924a07507a2ecef5f9efc362fead7e9dcd Mon Sep 17 00:00:00 2001 From: Skycode Date: Sat, 9 Nov 2024 22:28:21 +0100 Subject: [PATCH 4/4] updated readme file and removed unsupported python versions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7220e43..920cf36 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ 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, 3.10, 3.11 and 3.12 +- 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.