Skip to content

Commit bd13958

Browse files
authored
Merge pull request #256 from ndem0/pr_action
generic action for CI at PR
2 parents 1d6500c + 09a3978 commit bd13958

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/testing_pr.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: Setup conda
28+
uses: s-weigand/setup-conda@v1
29+
with:
30+
update-conda: true
31+
python-version: ${{ matrix.python-version }}
32+
conda-channels: anaconda, conda-forge
33+
34+
- name: Install Python dependencies
35+
run: |
36+
conda install --yes pythonocc-core=7.4.0
37+
python3 -m pip install --upgrade pip
38+
python3 -m pip install smithers[vtk]
39+
python3 -m pip install .[test]
40+
41+
- name: Test with pytest
42+
run: |
43+
python3 -m pytest

0 commit comments

Comments
 (0)