From 6ece04bc700c1519a76ff2f5dacd54e19f9e0d6d Mon Sep 17 00:00:00 2001 From: Eric <697460+esimorre@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:09:06 +0100 Subject: [PATCH 1/7] Create django.yml --- .github/workflows/django.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/django.yml diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml new file mode 100644 index 0000000..47ea45a --- /dev/null +++ b/.github/workflows/django.yml @@ -0,0 +1,27 @@ +name: Django CI + +on: + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [5.0] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + run: | + python manage.py test From 81b3f66fa72a5188ebf954699369b10f53c3980f Mon Sep 17 00:00:00 2001 From: Eric <697460+esimorre@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:12:56 +0100 Subject: [PATCH 2/7] fix python version --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 47ea45a..249274a 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -10,7 +10,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [5.0] + python-version: [3.11] steps: - uses: actions/checkout@v3 From fffdfb8248498264a8edfe8181da212fb0585799 Mon Sep 17 00:00:00 2001 From: Eric <697460+esimorre@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:26:07 +0100 Subject: [PATCH 3/7] fix run test cmd --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 249274a..cecdf73 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -24,4 +24,4 @@ jobs: pip install -r requirements.txt - name: Run Tests run: | - python manage.py test + python example_project/manage.py test django_year_calendar.tests From a3a7d41ffb9f6f1eebb1412e92f85cef0d5df54c Mon Sep 17 00:00:00 2001 From: Eric <697460+esimorre@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:38:25 +0100 Subject: [PATCH 4/7] install dyc --- .github/workflows/django.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index cecdf73..23369ec 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -22,6 +22,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt + python setup.py install - name: Run Tests run: | python example_project/manage.py test django_year_calendar.tests From e4ccebe344b47ca68f42c8bb6f0d9294a84a6d90 Mon Sep 17 00:00:00 2001 From: Eric <697460+esimorre@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:46:26 +0100 Subject: [PATCH 5/7] more python versions, on push master --- .github/workflows/django.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 23369ec..21ade5f 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -2,6 +2,10 @@ name: Django CI on: workflow_dispatch: + + push: + branches: + - master jobs: build: @@ -10,7 +14,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.11] + python-version: [3.6,3.8,3.11,3.12] steps: - uses: actions/checkout@v3 From 1d8efc8a87610bbe42f673cc1b216771d14b9b56 Mon Sep 17 00:00:00 2001 From: Eric <697460+esimorre@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:49:38 +0100 Subject: [PATCH 6/7] remove 3.6 --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 21ade5f..ac981e4 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -14,7 +14,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.6,3.8,3.11,3.12] + python-version: [3.8,3.11,3.12] steps: - uses: actions/checkout@v3 From 36bd84c0477b2a1bbb23a08b47153217c8f0bfdc Mon Sep 17 00:00:00 2001 From: Eric <697460+esimorre@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:57:11 +0100 Subject: [PATCH 7/7] add py 3.7 --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index ac981e4..1e536a5 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -14,7 +14,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.8,3.11,3.12] + python-version: [3.7,3.8,3.11] steps: - uses: actions/checkout@v3