Skip to content

Commit 2ae4c5a

Browse files
committed
generic action for CI at PR
1 parent 3f4a37c commit 2ae4c5a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/testing_pr.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Testing Pull Request"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "master"
7+
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [windows-latest, macos-latest, ubuntu-latest]
16+
python-version: [3.7, 3.8]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install Python dependencies
28+
run: |
29+
python3 -m pip install --upgrade pip
30+
python3 -m pip install .[test]
31+
32+
- name: Test with pytest
33+
run: |
34+
python3 -m pytest

0 commit comments

Comments
 (0)