From 78808e4654458465f0f7ceff404c6470e5992207 Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Mon, 22 Mar 2021 20:02:25 +0100 Subject: [PATCH] ci: also run on latest Python alpha, but allow failure --- .github/workflows/ci.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2b71b15c5..012617769 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,7 @@ jobs: strategy: matrix: platform: [ubuntu-latest] - python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10-dev] env: PY_COLORS: 1 @@ -28,16 +28,25 @@ jobs: run: | sudo apt-get install ffmpeg # For replaygain - - name: Test with tox - if: matrix.python-version != '3.9' + - name: Test older Python versions with tox + if: matrix.python-version != '3.9' && matrix.python-version != '3.10-dev' run: | tox -e py-test - - name: Test with tox and get coverage + - name: Test latest Python version with tox and get coverage if: matrix.python-version == '3.9' run: | tox -vv -e py-cov + - name: Test nightly Python version with tox + if: matrix.python-version == '3.10-dev' + # continue-on-error is not ideal since it doesn't give a visible + # warning, but there doesn't seem to be anything better: + # https://github.com/actions/toolkit/issues/399 + continue-on-error: true + run: | + tox -e py-test + - name: Upload code coverage if: matrix.python-version == '3.9' run: |