From 0c83bb36ad65ced6f359e72ac0e425521dcf407d Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Sun, 22 Dec 2024 11:21:19 +0100 Subject: [PATCH] Add Python 3.13 (#72) --- .github/workflows/release.yaml | 2 +- .github/workflows/test.yaml | 24 ++++++++++++------------ Dockerfile.dev | 2 +- tox.ini | 1 + 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7bbbaae..f27f17e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,7 +26,7 @@ jobs: echo "__version__ = '${{ github.event.inputs.version }}'" > src/linkplay/__version__.py - uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.13 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 881bbdd..70eb80d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,17 +8,17 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.11'] + python-version: ["3.13"] steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox tox-gh-actions - - name: Test with tox - run: tox \ No newline at end of file + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Test with tox + run: tox diff --git a/Dockerfile.dev b/Dockerfile.dev index a2168b6..6def4ac 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/python:1-3.12 +FROM mcr.microsoft.com/devcontainers/python:1-3.13 # Install uv RUN pip3 install uv diff --git a/tox.ini b/tox.ini index 6998ba4..2e1c0f8 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ isolated_build = true python = 3.11: py311, mypy, ruff 3.12: py312, mypy, ruff + 3.13: py312, mypy, ruff [testenv] package = wheel