Skip to content

Commit 219913a

Browse files
authored
Adds github workflow "runTests.yml" (#3)
1 parent 73c84bb commit 219913a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/runTests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest, macos-latest]
19+
version: ["3.9", "3.x"]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up Python version ${{ matrix.version }}
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: ${{ matrix.version }}
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -r requirements.txt
33+
- name: Test with pytest
34+
run: |
35+
pip install pytest pytest-cov
36+
pytest tests/ --cov=${{ github.event.repository.name }} --cov-report=html:htmlcov

0 commit comments

Comments
 (0)