Skip to content

Update workflows

Update workflows #2

Workflow file for this run

name: Test
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
if: hashFiles('pyproject.toml')
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
if: hashFiles('pyproject.toml')
run: |
pip install -e '.[test]'
- name: Run tests
if: hashFiles('pyproject.toml')
run: |
pytest