2022-09-12 08:24:04 +00:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
2022-09-12 08:39:44 +00:00
|
|
|
push:
|
2022-09-12 08:24:04 +00:00
|
|
|
branches:
|
2022-09-12 08:39:44 +00:00
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/**'
|
|
|
|
- 'tests/**'
|
|
|
|
pull_request:
|
|
|
|
types: [ opened, synchronize ]
|
|
|
|
paths:
|
|
|
|
- 'tests/**'
|
2022-09-12 08:24:04 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
pytest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python 3.10
|
|
|
|
uses: actions/setup-python@v3
|
|
|
|
with:
|
|
|
|
python-version: "3.10"
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install --upgrade poetry
|
|
|
|
poetry install
|
|
|
|
poetry install --extras test
|
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
|
|
|
pytest
|