Skip to content

Commit aad8e51

Browse files
committed
Add GitHub's test workflow
1 parent 8be56cb commit aad8e51

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test_package.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test suite
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
os: [ubuntu-latest, macos-11, windows-latest]
15+
python-version: [3.9]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
31+
- name: Run pytest tests
32+
run: |
33+
pytest

0 commit comments

Comments
 (0)