Skip to content

Update pre-commit action, update CONTRIBUTING doc to use poetry #154

Update pre-commit action, update CONTRIBUTING doc to use poetry

Update pre-commit action, update CONTRIBUTING doc to use poetry #154

Workflow file for this run

name: Lint & test
on: [push, pull_request]
jobs:
linters:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.8
- uses: pre-commit/action@v3.0.0
pytest:
name: pytest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Ensure poetry
uses: abatilo/actions-poetry@v2.1.2
- name: Install dependencies
run: poetry install
- name: Run matrix of tests with Tox
run: poetry run tox