Skip to content

Commit 1a9bc62

Browse files
Merge pull request #1 from guglielmopadula/macos-fix
Macos fix
2 parents f7a19ad + c9c8d7e commit 1a9bc62

File tree

1 file changed

+25
-30
lines changed

1 file changed

+25
-30
lines changed

.github/workflows/testing_pr.yml

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: "Testing Pull Request"
22

33
on:
44
pull_request:
5-
branches:
6-
- "master"
5+
76

87
jobs:
98
build:
@@ -12,32 +11,28 @@ jobs:
1211
fail-fast: false
1312
matrix:
1413
os: [windows-latest, macos-latest, ubuntu-latest]
15-
python-version: ["3.9", "3.10"]
16-
14+
python-version: ["3.9", "3.10"]
1715
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: Set up Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
25-
- name: Setup Conda
26-
uses: s-weigand/setup-conda@v1
27-
with:
28-
python-version: ${{ matrix.python-version }}
29-
update-conda: true
30-
conda-channels: conda-forge, anaconda
31-
32-
- name: Install pythonocc-core (Conda)
33-
run: conda install --yes -c conda-forge -c anaconda pythonocc-core
34-
shell: bash
35-
36-
- name: Install pip dependencies
37-
run: |
38-
python -m pip install --upgrade pip
39-
python -m pip install smithers[vtk]
40-
python -m pip install .[test]
41-
42-
- name: Run tests with pytest
43-
run: python -m pytest -v
16+
- uses: actions/checkout@v2
17+
18+
19+
- name: Installing conda
20+
uses: conda-incubator/setup-miniconda@v3
21+
22+
with:
23+
auto-update-conda: true
24+
python-version: ${{ matrix.python-version }}
25+
channels: anaconda, conda-forge
26+
27+
- name: Installing packages
28+
shell: bash -el {0}
29+
run: |
30+
conda install --yes -c conda-forge -c anaconda pythonocc-core
31+
python -m pip install --upgrade pip
32+
python -m pip install smithers[vtk]
33+
python -m pip install .[test]
34+
35+
- name: Test with pytest
36+
shell: bash -el {0}
37+
run: |
38+
python -m pytest

0 commit comments

Comments
 (0)