From f1035abbe9f580136ec9d7129c3488f323ad98dd Mon Sep 17 00:00:00 2001 From: Brian Thorne Date: Thu, 18 Mar 2021 15:55:51 +1300 Subject: [PATCH] Include MacOS and Python 3.10 (experimentally) in github tests --- .github/workflows/python-test.yml | 22 ++++++++++++++++++---- azure-pipelines.yml | 3 +-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index f83d6ed..156237e 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -3,15 +3,29 @@ name: Python Unit Tests -# Triggers the workflow on push or pull request events +# Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#on +# Triggers the workflow on push pushed to any branch in a repository on: push jobs: - build: - runs-on: Ubuntu-20.04 + pytest: + name: Python Unit Tests + runs-on: ${{ matrix.os }} + # Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontinue-on-error + continue-on-error: ${{ matrix.experimental }} strategy: matrix: - python-version: [3.9] + experimental: [false] + # Ref: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json + os: [macos-latest, ubuntu-latest] + python-version: + - "3.8" + - "3.9" + - "3.10.0-alpha.6" + include: + - python-version: "3.10.0-alpha.6" + os: ubuntu-latest + experimental: true steps: - uses: actions/checkout@v2 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cca48f5..489eebd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -46,14 +46,13 @@ stages: displayName: Linux strategy: matrix: - python36: - PYTHON_VERSION: '3.6' python37: PYTHON_VERSION: '3.7' python38: PYTHON_VERSION: '3.8' python39: PYTHON_VERSION: '3.9' + pool: vmImage: 'ubuntu-18.04' steps: