From 24ba37500c2370f1824c52acf59c4300d73d7d69 Mon Sep 17 00:00:00 2001 From: Brendon Smith Date: Mon, 5 Jul 2021 15:05:17 -0400 Subject: [PATCH] Add Python 3.10 to GitHub Actions workflows Beta releases of Python 3.10 were installed with `"3.10.0-beta - 3.10"`. Python 3.10 is now stable, so beta versions are no longer needed. --- .github/workflows/builds.yml | 6 +++--- .github/workflows/hooks.yml | 2 +- .github/workflows/tests.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index cab333f..f0750f5 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 @@ -64,7 +64,7 @@ jobs: with: fail_ci_if_error: true flags: unit - - name: Build Python package with latest Python version and publish to PyPI + - name: Build Python package with latest stable Python version and publish to PyPI if: startsWith(github.ref, 'refs/tags/') && matrix.python-version == 3.9 run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }} docker: @@ -73,7 +73,7 @@ jobs: strategy: matrix: linux-version: ["", "alpine", "slim"] - python-version: [3.8, 3.9] + python-version: [3.8, 3.9, 3.10] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 diff --git a/.github/workflows/hooks.yml b/.github/workflows/hooks.yml index 0350705..4871fa6 100644 --- a/.github/workflows/hooks.yml +++ b/.github/workflows/hooks.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 18f8dcb..9b552f9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2