Skip to content

Develop

Develop #149

Workflow file for this run

name: test
on:
workflow_dispatch: # manual invocation
push:
branches-ignore: [main, develop] # have to manually change these
pull_request:
types: [opened, edited, synchronize]
branches: [main, develop] # have to manually change these
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure poetry
run: |
python -m pip install poetry
poetry config virtualenvs.in-project true
poetry config installer.modern-installation false
- name: Cache the virtualenv
uses: actions/cache@v2
with:
path: ./.venv
key: ${{ runner.os }}-test-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry install
- name: Run tests
run: |
poetry run python -m pytest --verbose --exitfirst