From 0c85b1a53c209f5d22f9ab3c655571ee076ad7fc Mon Sep 17 00:00:00 2001 From: dingedi Date: Tue, 3 May 2022 11:09:55 +0200 Subject: [PATCH 1/2] add python 3.10 --- .github/workflows/publish-package.yml | 6 +++--- .github/workflows/run-tests.yml | 2 +- setup.py | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 1845d98..60dedea 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9, 3.10] steps: - uses: actions/checkout@v2 @@ -29,7 +29,7 @@ jobs: - name: Check code style with flake8 (lint) run: | - # warnings if there are Python syntax errors or undefined names + # warnings if there are Python syntax errors or undefined names # (remove --exit-zero to fail when syntax error) flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide @@ -38,7 +38,7 @@ jobs: - name: Test with pytest run: pytest - + publish: needs: [ tests ] runs-on: ubuntu-latest diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 96c6849..11250ae 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9, 3.10] steps: - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index 38b0c66..5780002 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,7 @@ setup( "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9" + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10" ] ) From ea63203aeabc991e080ba27f69154df8daaf172b Mon Sep 17 00:00:00 2001 From: dingedi Date: Tue, 3 May 2022 11:14:21 +0200 Subject: [PATCH 2/2] prevent github action error with python 3.10 recognized as python 3.1 --- .github/workflows/publish-package.yml | 2 +- .github/workflows/run-tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 60dedea..fb9b8d7 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, 3.10] + python-version: ['3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 11250ae..82fd4ee 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, 3.10] + python-version: ['3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2