add other OSes

This commit is contained in:
Jonathan Wren 2020-11-07 13:42:44 -08:00
parent 53565c216c
commit 5f52f72a94
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A

View file

@ -10,33 +10,34 @@ on:
branches: [ develop ] branches: [ develop ]
jobs: jobs:
runs-on: ${{ matrix.os }}
build: build:
runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: [3.7, 3.8, 3.9] python-version: [3.7, 3.8, 3.9]
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v2 steps:
- name: Set up Python ${{ matrix.python-version }} - uses: actions/checkout@v2
uses: actions/setup-python@v2 - name: Set up Python ${{ matrix.python-version }}
with: uses: actions/setup-python@v2
python-version: ${{ matrix.python-version }} with:
- uses: actions/cache@v2 python-version: ${{ matrix.python-version }}
with: - uses: actions/cache@v2
path: | with:
.venv path: |
~/.cache/pip .venv
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }} ~/.cache/pip
- name: Install dependencies key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}
run: | - name: Install dependencies
pip install poetry run: |
poetry config --local virtualenvs.in-project true pip install poetry
poetry install --remove-untracked poetry config --local virtualenvs.in-project true
- name: Test with pytest poetry install --remove-untracked
run: | - name: Test with pytest
poetry run pytest run: |
- name: Test with behave poetry run pytest
run: | - name: Test with behave
poetry run behave --no-skipped --format progress2 run: |
poetry run behave --no-skipped --format progress2