Skip to content

Commit fe47a98

Browse files
committed
Add test running workflow on PRs
1 parent 08aaf32 commit fe47a98

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4.2.2
17+
- name: Set up Python
18+
uses: actions/setup-python@v5.3.0
19+
with:
20+
python-version: "3.x"
21+
- name: Install Python dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -U -r requirements.txt -r requirements_testing.txt
25+
- name: Run tests
26+
run: pytest

0 commit comments

Comments
 (0)