Skip to content

Add pytest GitHub workflow & convert to src/ layout #8

Add pytest GitHub workflow & convert to src/ layout

Add pytest GitHub workflow & convert to src/ layout #8

Workflow file for this run

name: tox
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run Tests
run: tox run -m ${{ matrix.python-version }}