From a7ec0b0e00564eeb655cc37ddd4525bd2b6de355 Mon Sep 17 00:00:00 2001 From: Ben Hauser Date: Wed, 7 Oct 2020 12:49:39 +0300 Subject: [PATCH 1/2] ci: run test suite against python 3.9 --- .github/workflows/main.yaml | 52 +++++++++++++++++++++++++------------ tox.ini | 4 +-- 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3d344dd..d2e3e36 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - - name: Setup Python 3.8 - uses: actions/setup-python@v1 + - name: Setup Python 3.9 + uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install Tox run: pip install tox wheel @@ -24,15 +24,14 @@ jobs: - name: Run Tox run: tox -e lint - py36: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Setup Python 3.6 - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: 3.6 @@ -48,15 +47,14 @@ jobs: file: ./coverage.xml fail_ci_if_error: true - py37: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Setup Python 3.7 - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: 3.7 @@ -72,8 +70,30 @@ jobs: file: ./coverage.xml fail_ci_if_error: true - py38: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Install Tox + run: pip install tox wheel + + - name: Run Tox + run: tox -e py38 + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./coverage.xml + fail_ci_if_error: true + + py39: runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -81,18 +101,18 @@ jobs: os: [macos-latest, ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - - name: Setup Python 3.8 - uses: actions/setup-python@v1 + - name: Setup Python 3.9 + uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install Tox run: pip install tox wheel - name: Run Tox - run: tox -e py38 + run: tox -e py39 - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 diff --git a/tox.ini b/tox.ini index 7fcbc7f..914ba79 100644 --- a/tox.ini +++ b/tox.ini @@ -1,14 +1,14 @@ [tox] envlist = lint - py{36,37,38} + py{36,37,38,39} [testenv] passenv = GITHUB_TOKEN deps = -r{toxinidir}/requirements-dev.txt commands = - py{36,37,38}: python -m pytest tests/ + py{36,37,38,39}: python -m pytest tests/ [testenv:lint] extras=linter From c127191faee135ce31187eeddbde1af715fbfcec Mon Sep 17 00:00:00 2001 From: Ben Hauser Date: Wed, 7 Oct 2020 12:49:58 +0300 Subject: [PATCH 2/2] chore: add python3.9 to supported versions --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 6a3d960..97c6f3c 100644 --- a/setup.py +++ b/setup.py @@ -27,5 +27,6 @@ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", ], )