Skip to content

Commit

Permalink
Run pytest on GH (#22)
Browse files Browse the repository at this point in the history
This PR adds an action to run pytest, so we can ensure we don't
accidentally break code.
  • Loading branch information
afmagee42 authored Oct 24, 2024
1 parent 75ae2d1 commit 2f43c68
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run-pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Pytest

on:
pull_request:
push:
branches: [main]

jobs:
pytest:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install global dependencies
run: |
pip install poetry
pip install pytest
pip install dendropy
pip install typing-extensions
- name: Test in ${{matrix.directories}}
working-directory: ${{matrix.directories}}
run: |
poetry install
poetry run pytest -v

0 comments on commit 2f43c68

Please sign in to comment.