enh: test on pr

pull/174/head
Cullen Watson 2024-07-19 14:04:12 -05:00
parent 60d4d911c9
commit 7fddae3a65
2 changed files with 24 additions and 0 deletions

22
.github/workflows/python-test.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Python Tests
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run tests
run: poetry run pytest src/tests/test_all.py

2
poetry.toml Normal file
View File

@ -0,0 +1,2 @@
[virtualenvs]
in-project = true