Skip to content

Commit

Permalink
feat: run pytest for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
danimo committed Oct 3, 2024
1 parent 156eddc commit dfec22a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run Pytest on Pull Request

on:
pull_request:
branches:
- main # Change this to your default branch if it's not 'main'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Pytest
run: |
python -m pytest -v tests/
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ scikit-learn==1.5.2
deap==1.4.1
joblib==1.4.2
requests==2.32.3
pytest==8.3.3

0 comments on commit dfec22a

Please sign in to comment.