Skip to content

Commit

Permalink
add python test workflow on changes to python scripts or python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-webber committed May 30, 2024
1 parent 4296788 commit d32e6c2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run Python Tests

on:
workflow_dispatch:
pull_request:
paths:
- "scripts/**.py"
- "tests/**.py"
push:
paths:
- "scripts/**.py"
- "tests/**.py"

jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: pip install semantic-version pytest

- name: run unit tests
id: python-tests
run: poetry run pytest tests/

0 comments on commit d32e6c2

Please sign in to comment.