Skip to content

Commit 9675daa

Browse files
Merge pull request #6 from StevenMaude/add-test-workflow
Add @StevenMaude's GitHub Workflow Action test on Windows and Ubuntu (the proper way)
2 parents 3a70b7e + 75a8f4d commit 9675daa

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run tests
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
python-version: [3.7, 3.8, 3.9]
14+
os: [ubuntu-latest, windows-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install package
25+
run: pip install .
26+
27+
- name: Run tests
28+
run: python -m unittest

0 commit comments

Comments
 (0)