|
5 | 5 | branches: |
6 | 6 | - "master" |
7 | 7 |
|
8 | | - |
9 | 8 | jobs: |
10 | 9 | build: |
11 | 10 | runs-on: ${{ matrix.os }} |
12 | 11 | strategy: |
13 | 12 | fail-fast: false |
14 | 13 | matrix: |
15 | | - os: [windows-latest, macos-latest, ubuntu-latest] |
16 | | - python-version: [3.7, 3.8] |
17 | | - |
| 14 | + os: [windows-latest, macos-12, ubuntu-latest] |
| 15 | + python-version: ["3.9", "3.10", "3.11"] |
| 16 | + |
18 | 17 | steps: |
19 | | - - uses: actions/checkout@v2 |
| 18 | + - uses: actions/checkout@v4 |
20 | 19 |
|
| 20 | + - name: Set up Python |
| 21 | + uses: actions/setup-python@v5 |
| 22 | + with: |
| 23 | + python-version: ${{ matrix.python-version }} |
21 | 24 |
|
22 | | - - name: Set up Python |
23 | | - uses: actions/setup-python@v2 |
24 | | - with: |
25 | | - python-version: ${{ matrix.python-version }} |
| 25 | + - name: Setup Conda |
| 26 | + if: matrix.os == 'macos-12' || matrix.os == 'ubuntu-latest' |
| 27 | + uses: s-weigand/setup-conda@v1 |
| 28 | + with: |
| 29 | + auto-update-conda: true |
| 30 | + conda-channels: conda-forge |
26 | 31 |
|
27 | | - - name: Setup conda |
28 | | - uses: s-weigand/setup-conda@v1 |
29 | | - with: |
30 | | - update-conda: true |
31 | | - python-version: ${{ matrix.python-version }} |
32 | | - conda-channels: anaconda, conda-forge |
33 | | - |
34 | | - - name: Install Python dependencies |
35 | | - run: | |
36 | | - conda install --yes pythonocc-core=7.4.0 |
37 | | - python3 -m pip install --upgrade pip |
38 | | - python3 -m pip install smithers[vtk] |
39 | | - python3 -m pip install .[test] |
| 32 | + - name: Install Python dependencies |
| 33 | + run: | |
| 34 | + if [[ "${{ matrix.os }}" == "macos-12" || "${{ matrix.os }}" == "ubuntu-latest" ]]; then |
| 35 | + conda install --yes pythonocc-core=7.4.0 |
| 36 | + fi |
| 37 | + python -m pip install --upgrade pip |
| 38 | + python -m pip install smithers[vtk] |
| 39 | + python -m pip install .[test] |
40 | 40 |
|
41 | | - - name: Test with pytest |
42 | | - run: | |
43 | | - python3 -m pytest |
| 41 | + - name: Run tests with pytest |
| 42 | + run: | |
| 43 | + python -m pytest |
0 commit comments