|
5 | 5 | branches: |
6 | 6 | - "master" |
7 | 7 |
|
| 8 | + |
8 | 9 | jobs: |
9 | 10 | build: |
10 | 11 | runs-on: ${{ matrix.os }} |
11 | 12 | strategy: |
12 | 13 | fail-fast: false |
13 | 14 | matrix: |
14 | 15 | os: [windows-latest, macos-latest, ubuntu-latest] |
15 | | - python-version: ["3.9", "3.10"] |
16 | | - |
| 16 | + python-version: ["3.9", "3.10"] |
17 | 17 | 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