Skip to content

Commit

Permalink
Run tests on pull requests (#11)
Browse files Browse the repository at this point in the history
* Added workflow for PR to run tests

---------

Co-authored-by: Thomas Staal <[email protected]>
  • Loading branch information
Staalet authored Nov 19, 2024
1 parent ebba621 commit 2f941e2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python -m pytest --verbose

0 comments on commit 2f941e2

Please sign in to comment.