Skip to content

Commit 9da8f67

Browse files
authored
Add automated test workflow for PRs and push (#15)
* Create run-tests.yml Add automated test workflow for PRs and push * Update run-tests.yml use python 3.12 * set pytest run to show skipped tests on auto test
1 parent cd5eac8 commit 9da8f67

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: run-tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
run-tests:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.12'
18+
19+
- name: install dependencies
20+
run: pip install .
21+
shell: bash
22+
23+
- name: install pytest
24+
run: pip install pytest
25+
shell: bash
26+
27+
- name: run test
28+
run: pytest -rs
29+
shell: bash

0 commit comments

Comments
 (0)