-
Notifications
You must be signed in to change notification settings - Fork 125
44 lines (36 loc) · 1.03 KB
/
testing_pr.yml
File metadata and controls
44 lines (36 loc) · 1.03 KB
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
name: "Testing Pull Request"
on:
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-12, ubuntu-latest]
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Conda
if: matrix.os != 'windows-latest'
uses: s-weigand/setup-conda@v1
with:
auto-update-conda: true
conda-channels: conda-forge
- name: Install pythonocc-core (Conda)
if: matrix.os != 'windows-latest'
run: conda install --yes pythonocc-core
shell: bash
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install smithers[vtk]
python -m pip install .[test]
- name: Run tests with pytest
run: python -m pytest