From 23461cc8315eecbf9fea3b7029ddccc08f236572 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Thu, 7 Mar 2024 16:05:34 -0800 Subject: [PATCH 1/2] Test using python 3.12 instead of 3.11 --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a48fc0b5..588f9357 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] dj = "python manage.py {args}" -tests = "hatch run test-sqlite.py3.11-4.2:test {args}" +tests = "hatch run test-sqlite.py3.12-4.2:test {args}" all = [ "hatch run lint:run", "rm -f .coverage.*", @@ -168,7 +168,7 @@ template = "testing" DBBACKEND = "sqlite3" DBNAME = ":memory:" [[tool.hatch.envs.test-sqlite.matrix]] -python = ["3.8", "3.11"] +python = ["3.8", "3.12"] django = ["3.2", "4.2"] [tool.hatch.envs.test-sqlite.overrides] matrix.django.extra-dependencies = [ @@ -184,7 +184,7 @@ extra-dependencies = [ [tool.hatch.envs.test-mysql.env-vars] DBBACKEND = "mysql" [[tool.hatch.envs.test-mysql.matrix]] -python = ["3.8", "3.11"] +python = ["3.8", "3.12"] django = ["3.2", "4.2"] [tool.hatch.envs.test-mysql.overrides] matrix.django.extra-dependencies = [ @@ -213,7 +213,7 @@ html = ["coverage html"] [tool.hatch.envs.lint] detached = true -python = "3.11" +python = "3.12" dependencies = [ "pre-commit" ] From 6ef55ea49bdefb5a86da1d3341216252d1e465e8 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Thu, 7 Mar 2024 16:06:35 -0800 Subject: [PATCH 2/2] Test with python3.12 for hatch and CI tests Switch python 3.11 to python 3.12. Keep python 3.8 since that is what we are using on our web server. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c22549d..cfbaed1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.11"] + python-version: ["3.8", "3.12"] django-version: ["3.2", "4.2"] backend: ["sqlite", "mysql"] runs-on: ubuntu-latest @@ -84,7 +84,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install hatch run: python -m pip install --upgrade hatch