Run pytest with Github Actions

This commit is contained in:
2022-09-24 00:35:48 +02:00
parent 0127dab513
commit 0828b37d43
2 changed files with 180 additions and 147 deletions

23
.github/workflows/pytest.yml vendored Normal file
View File

@ -0,0 +1,23 @@
---
name: Test code with pytest
on: [ push, pull_request ]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run tests
run: poetry run pytest