Skip to content

Commit a3d5cb5

Browse files
Update GitHub Actions workflow for Python testing
1 parent ef14bf1 commit a3d5cb5

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

.github/workflows/testing_pr.yml

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,36 @@ on:
55
branches:
66
- "master"
77

8+
89
jobs:
910
build:
1011
runs-on: ${{ matrix.os }}
1112
strategy:
1213
fail-fast: false
1314
matrix:
1415
os: [windows-latest, macos-latest, ubuntu-latest]
15-
python-version: ["3.9", "3.10"]
16-
16+
python-version: ["3.9", "3.10"]
1717
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
18+
- uses: actions/checkout@v2
19+
20+
21+
- name: Installing conda
22+
uses: conda-incubator/setup-miniconda@v3
23+
24+
with:
25+
auto-update-conda: true
26+
python-version: ${{ matrix.python-version }}
27+
channels: anaconda, conda-forge
28+
29+
- name: Installing packages
30+
shell: bash -el {0}
31+
run: |
32+
conda install --yes -c conda-forge -c anaconda pythonocc-core
33+
python -m pip install --upgrade pip
34+
python -m pip install smithers[vtk]
35+
python -m pip install .[test]
36+
37+
- name: Test with pytest
38+
shell: bash -el {0}
39+
run: |
40+
python -m pytest

0 commit comments

Comments
 (0)