Skip to content

Commit f7be048

Browse files
Add Pytest workflow
1 parent 183efc9 commit f7be048

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Run all unit tests
2+
3+
name: Pytest
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
workflow_dispatch:
11+
12+
jobs:
13+
verify:
14+
name: Running unit tests
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python 3.11
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: "3.11"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
- name: Install Pytest
27+
run: |
28+
python -m pip install pytest
29+
- name: Running Pytest
30+
run: |
31+
pytest ./test/

0 commit comments

Comments
 (0)