Skip to content

Commit 9770461

Browse files
authored
Merge pull request #18 from tekktrik/dev/use-pytest
Run pytest if tests are available
2 parents 3c236c4 + 87ee42c commit 9770461

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ runs:
5656
shell: bash
5757
run: |
5858
pre-commit run --all-files
59+
- name: Install pytest
60+
shell: bash
61+
run: pip install pytest
62+
- name: Install dependencies
63+
shell: bash
64+
run: |
65+
pip install -r requirements.txt
66+
pip install -r optional_requirements.txt
67+
- name: Run pytest
68+
shell: bash
69+
run: if [[ -d tests ]]; then pytest; fi
5970
- name: Build assets
6071
shell: bash
6172
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .

0 commit comments

Comments
 (0)