Skip to content

release: updates for looptrace v0.18.0 #56

release: updates for looptrace v0.18.0

release: updates for looptrace v0.18.0 #56

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
pytest:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: snok/install-poetry@v1 # v1.3.4 at time of adoption
with:
poetry-version: "1.7.1"
- uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry/virtualenvs
~/.cache/pytest
key: ${{ runner.os }}-poetry-tests-${{ hashFiles('poetry.lock') }}
- name: Install project
run: poetry sync --no-interaction --with testsuite
- name: Run unit tests on Python ${{ matrix.python-version }} on ${{ matrix.os }}
run: poetry run pytest -vv