Skip to content

fix up workflows some more #59

fix up workflows some more

fix up workflows some more #59

Workflow file for this run

name: Dev (formatting, tests, test build docs)
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows other workflows to trigger this workflow
workflow_call:
jobs:
test:
name: Run tests and auto checks on code
strategy:
matrix:
python-versions: [3.11, 3.12]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Get repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-versions }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install --with dev
- name: Find tox
run: poetry run tox --version
# tox handles the logic for what tests etc. to run. See tox.ini for details.
- name: Run tox (includes tests, format, lint, docs)
run: poetry run tox -vv