2021-01-08 16:02:09 +00:00
|
|
|
name: Test package
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-01-08 17:24:33 +00:00
|
|
|
branches: [ master ]
|
2021-01-08 16:02:09 +00:00
|
|
|
pull_request:
|
2021-01-08 17:24:33 +00:00
|
|
|
branches: [ master ]
|
2021-01-08 16:02:09 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout the repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Python 3.9
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
- name: Install Poetry
|
|
|
|
uses: abatilo/actions-poetry@v2.0.0
|
|
|
|
- name: Install development dependencies
|
|
|
|
run: poetry install
|
|
|
|
- name: Run pytest
|
|
|
|
run: poetry run pytest
|