Skip to content

Clean up tests and reorganize test artifacts #5

Clean up tests and reorganize test artifacts

Clean up tests and reorganize test artifacts #5

Workflow file for this run

name: test
on:
push:
branches:
- master
tags:
- 'v*'
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
strategy:
matrix:
# TODO: Consider testing on macOS and Windows.
os: [ubuntu-latest] #, macos-latest, windows-latest]
# TODO: Consider testing on Python 3.9 - 3.12.
python-version: ["3.12"]
poetry-version: ["1.8.3"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Setup a local virtual environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Cache dependencies
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install project dependencies
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest