Skip to content

Allow direct dependencies #50

Allow direct dependencies

Allow direct dependencies #50

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"]
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