Skip to content

MAINT/TST: Add requirement to run linting on push #91

MAINT/TST: Add requirement to run linting on push

MAINT/TST: Add requirement to run linting on push #91

Workflow file for this run

name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- 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 poetry
poetry env use ${{ matrix.python-version }}
poetry install --with=test
- name: Test with pytest
run: |
poetry run pytest