Skip to content

Commit

Permalink
Add action for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lecriste committed Nov 14, 2024
1 parent 4b0f5b4 commit 6c38827
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: On pull request push

on:
pull_request:
branches:
- "*"

jobs:
tests:
name: Run test suites
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: Install Python dependencies
run: pip install .[dev]

- name: Run unit tests
env:
TEST_FOLDER: tests
run: pytest tests --color yes

0 comments on commit 6c38827

Please sign in to comment.