-
Notifications
You must be signed in to change notification settings - Fork 30
56 lines (45 loc) · 1.46 KB
/
testing_pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Testing Pull Request"
on:
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup conda
uses: s-weigand/[email protected]
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Install Python dependencies on Linux/MacOS
if: startsWith(matrix.os, 'windows') != true
run: |
conda install --yes pythonocc-core=7.4.1
python3 -m pip install --upgrade pip
python3 -m pip install smithers[vtk]
python3 -m pip install .[test]
- name: Install Python dependencies on Windows
if: startsWith(matrix.os, 'windows')
run: |
conda install --yes pythonocc-core=7.4.1
python -m pip install --upgrade pip
python -m pip install smithers[vtk]
python -m pip install .[test]
- name: Test with pytest on Windows
if: startsWith(matrix.os, 'windows')
run: python -m pytest
- name: Test with pytest on Linux/MacOS
if: startsWith(matrix.os, 'windows') != true
run: python3 -m pytest