From a7d25c8fe194939300c22c55e6b1d5d780fa0d22 Mon Sep 17 00:00:00 2001 From: Leggin Date: Sat, 6 Jan 2024 10:43:47 +0100 Subject: [PATCH 1/3] update action to newer python versions --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 883ffc2..b898511 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 @@ -42,10 +42,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | python -m venv venv From a4b1ff9777c04638137915fc0c925533043d04d5 Mon Sep 17 00:00:00 2001 From: Leggin Date: Sat, 6 Jan 2024 10:50:09 +0100 Subject: [PATCH 2/3] install setuptools for 3.12 --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b898511..c8aa4c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 @@ -30,6 +30,7 @@ jobs: python -m pip install --upgrade pip pip install pylint pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ ${{ matrix.python-version }} == "3.12" ]; then pip install setuptools; fi - name: Analysing the code with pylint run: | pylint $(git ls-files '*.py') From 990685a139be4a3855bb69f75e35ed0a4b45fcac Mon Sep 17 00:00:00 2001 From: Leggin Date: Sat, 6 Jan 2024 10:50:16 +0100 Subject: [PATCH 3/3] bump python version --- mypy.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy.ini b/mypy.ini index dc9e4a7..ef472db 100644 --- a/mypy.ini +++ b/mypy.ini @@ -4,6 +4,6 @@ python_version = 3.11 exclude = build disallow_untyped_defs = True -python_executable = venv/bin/python3.11 +python_executable = venv/bin/python3.12 follow_imports = silent plugins = pydantic.mypy