From 16c45dddef5eace8c6d9d326cbb16ebf8ac05b98 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 11 Dec 2023 16:56:28 -0300 Subject: [PATCH 1/4] Update actions versions --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 72d83d7..be74372 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: run: echo $GITHUB_CONTEXT - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 @@ -31,7 +31,7 @@ jobs: ${{ runner.os }}-pip- - name: Setup python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 if: "!endsWith(matrix.python-version, '-dev')" with: python-version: ${{ matrix.python-version }} @@ -66,12 +66,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: Setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 From 5e76ab2dd88b9081126f7c3582d3500308fe0863 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 11 Dec 2023 16:59:21 -0300 Subject: [PATCH 2/4] Add concurrency Prevent from running the workflow more than once for the same pull request or for the same commit hash --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be74372..b63bae1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,10 @@ name: Test on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: tests: runs-on: ubuntu-latest From d1e9f4579e627c60f0beaf55a6cb3428489e45d5 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 11 Dec 2023 17:03:09 -0300 Subject: [PATCH 3/4] Use pre-releases from action/setup-python Drop complexity of the workflow and tox config by not using deadsnakes GitHub Action. Instead, use setup-python action's pre-release versions. --- .github/workflows/test.yml | 10 ++-------- tox.ini | 5 +++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b63bae1..f14acf3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12-dev'] + python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13'] max-parallel: 1 steps: @@ -36,15 +36,9 @@ jobs: - name: Setup python ${{ matrix.python-version }} uses: actions/setup-python@v5 - if: "!endsWith(matrix.python-version, '-dev')" - with: - python-version: ${{ matrix.python-version }} - - - name: Setup python ${{ matrix.python-version }} (via deadsnakes) - uses: deadsnakes/action@v2.1.1 - if: "endsWith(matrix.python-version, '-dev')" with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install tox and test related run: | diff --git a/tox.ini b/tox.ini index ce50580..09df126 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{37,38,39,310,311,312-dev}, + py{37,38,39,310,311,312,313}, flake8, mypy @@ -11,7 +11,8 @@ python = 3.9: py39 3.10: py310 3.11: py311 - 3.12: py312-dev + 3.12: py312 + 3.13: py313 [testenv] deps=-e.[transifex,test] From dc490820070f0c0d3fa99783725bccc10cd47827 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 11 Dec 2023 19:11:21 -0300 Subject: [PATCH 4/4] Add 3.13 classifier to pyproject.toml --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 20115be..aa72909 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Framework :: Sphinx", ]