Skip to content

Commit d30cb4e

Browse files
ci: add GitHub Actions pytest workflow for Python 3.11 and 3.12
Co-authored-by: zachessesjohnson <168567202+zachessesjohnson@users.noreply.github.com>
1 parent cab1cae commit d30cb4e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: pytest
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.11", "3.12"]
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install -U pip
26+
if [ -f requirements.txt ]; then
27+
pip install -r requirements.txt
28+
else
29+
pip install numpy pandas scipy statsmodels scikit-learn pytest
30+
fi
31+
32+
- name: Run tests
33+
run: |
34+
pytest -q

0 commit comments

Comments
 (0)