From a7a105adf9727d52c583ba5f703e281b9c52234f Mon Sep 17 00:00:00 2001 From: Alireza Savand Date: Sun, 13 Apr 2025 11:41:12 +0400 Subject: [PATCH 1/2] Upgrade Tox and Github Actions to Python 3.13 and remove EOL 3.8. --- .github/workflows/main.yml | 8 ++++---- .github/workflows/pypi.yml | 2 +- tox.ini | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2418591..53e5ca0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: - name: setup python uses: actions/setup-python@v2 with: - python-version: '3.12' + python-version: '3.13' - name: Install Requirements [${{ matrix.toxenv }}] run: pip install tox @@ -48,14 +48,12 @@ jobs: strategy: matrix: toxenv: - - py38 - py39 - py310 - py311 - py312 + - py313 include: - - toxenv: py38 - python-version: '3.8' - toxenv: py39 python-version: '3.9' - toxenv: py310 @@ -64,6 +62,8 @@ jobs: python-version: '3.11' - toxenv: py312 python-version: '3.12' + - toxenv: py313 + python-version: '3.13' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TOXENV: ${{ matrix.toxenv }} diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 2c64a6a..99ead71 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: Build run: | diff --git a/tox.ini b/tox.ini index 9a3e450..d2e10f6 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = flake8 isort mypy - py{38,39,310,311,312,py3} + py{39,310,311,312,313,py3} minversion = 4.11.4 [testenv] From 0ff67d7e677d45de01ce05292fd911d91c20dde6 Mon Sep 17 00:00:00 2001 From: Alireza Savand Date: Sun, 13 Apr 2025 11:54:54 +0400 Subject: [PATCH 2/2] CI: Upgrade CodeCov to v5 and use token for uploading reports. - Upgrade Python actions to v5. - Upgrade checkout to v4. --- .github/workflows/main.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 53e5ca0..a0cd8b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,12 +27,12 @@ jobs: name: "Tox ${{ matrix.toxenv }}" steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.13' @@ -72,12 +72,12 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 2 - name: setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -88,10 +88,9 @@ jobs: run: tox - name: Upload coverage to Codecov - # see https://github.com/codecov/codecov-action/blob/master/README.md - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v5 with: flags: unittests-${{ matrix.python-version }} + token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true # default = false - os: toxenv verbose: true # default = false