Skip to content

Commit 45cc58d

Browse files
committed
Run pytest if tests are available
1 parent 3c236c4 commit 45cc58d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,13 @@ jobs:
2424
submodules: true
2525
- name: Install pre-commit
2626
run: pip install pre-commit
27+
- name: Install pytest
28+
run: pip install pytest
2729
- name: Run pre-commit
2830
run: pre-commit run --all-files
31+
- name: Install dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
pip install -r optional_requirements.txt
35+
- name: Run pytest
36+
run: if [[ -d tests ]]; then pytest; fi

0 commit comments

Comments
 (0)