Skip to content

Commit

Permalink
Include MacOS and Python 3.10 (experimentally) in github tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hardbyte committed Mar 18, 2021
1 parent 663a29f commit f7b6336
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,31 @@

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: ${{ matrix.os }} / ${{ matrix.python-version }}
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.7"
- "3.8"
- "3.9"
# How to add an experimental job:
# - "3.10.0-alpha.6"
# include:
# - python-version: "3.10.0-alpha.6"
# os: ubuntu-latest
# experimental: true

steps:
- uses: actions/checkout@v2
Expand All @@ -32,7 +48,9 @@ jobs:
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Configure poetry
shell: bash
run: poetry config virtualenvs.in-project true
run: |
poetry --version
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v2.1.4
Expand All @@ -43,7 +61,7 @@ jobs:

- name: Install dependencies
run: |
poetry install
poetry install --no-interaction
- name: Test with pytest
run: |
poetry run pytest -q tests
3 changes: 1 addition & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f7b6336

Please sign in to comment.