|
8 | 8 |
|
9 | 9 | jobs:
|
10 | 10 | python_unittests:
|
11 |
| - |
12 | 11 | runs-on: ${{ matrix.os }}
|
13 | 12 | strategy:
|
14 | 13 | fail-fast: false
|
15 | 14 | matrix:
|
16 | 15 | os: [ubuntu-latest, windows-latest, macos-latest]
|
17 |
| - python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] |
| 16 | + python-version: [3.8, 3.9, "3.10", "3.11"] |
18 | 17 | exclude:
|
19 | 18 | - os: macos-latest
|
20 | 19 | python-version: 3.7
|
21 | 20 | - os: macos-latest
|
22 | 21 | python-version: 3.8
|
23 | 22 |
|
24 |
| - |
25 | 23 | steps:
|
26 |
| - - uses: actions/checkout@v2 |
27 |
| - |
28 |
| - - name: Set up Python ${{ matrix.python-version }} |
29 |
| - uses: actions/setup-python@v2 |
30 |
| - with: |
31 |
| - python-version: ${{ matrix.python-version }} |
32 |
| - |
33 |
| - - name: Test Windows |
34 |
| - if: matrix.os == 'windows-latest' |
35 |
| - run: | |
36 |
| - python -m pip install --upgrade pip |
37 |
| - python -m pip install pytest |
38 |
| - python -m pip install -r requirements.txt |
39 |
| - python -m pytest brainspace --ignore brainspace/tests/test_plotting.py |
| 24 | + - uses: actions/checkout@v2 |
| 25 | + |
| 26 | + - name: Set up Python ${{ matrix.python-version }} |
| 27 | + uses: actions/setup-python@v2 |
| 28 | + with: |
| 29 | + python-version: ${{ matrix.python-version }} |
40 | 30 |
|
| 31 | + - name: Test Windows |
| 32 | + if: matrix.os == 'windows-latest' |
| 33 | + run: | |
| 34 | + python -m pip install --upgrade pip |
| 35 | + python -m pip install pytest |
| 36 | + python -m pip install -r requirements.txt |
| 37 | + python -m pytest brainspace --ignore brainspace/tests/test_plotting.py |
41 | 38 |
|
42 |
| - - name: Prepare Linux |
43 |
| - if: matrix.os == 'ubuntu-latest' |
44 |
| - run: | |
45 |
| - python3 -m pip install --upgrade pip |
46 |
| - python3 -m pip install pytest |
47 |
| - python3 -m pip install -r requirements.txt |
48 |
| - |
49 |
| - - name: Test Linux |
50 |
| - if: matrix.os == 'ubuntu-latest' |
51 |
| - |
52 |
| - with: |
53 |
| - options: -screen 0 1600x1200x24 |
54 |
| - run: python3 -m pytest brainspace |
| 39 | + - name: Prepare Linux |
| 40 | + if: matrix.os == 'ubuntu-latest' |
| 41 | + run: | |
| 42 | + python3 -m pip install --upgrade pip |
| 43 | + python3 -m pip install pytest |
| 44 | + python3 -m pip install -r requirements.txt |
55 | 45 |
|
| 46 | + - name: Test Linux |
| 47 | + if: matrix.os == 'ubuntu-latest' |
| 48 | + |
| 49 | + with: |
| 50 | + options: -screen 0 1600x1200x24 |
| 51 | + run: python3 -m pytest brainspace |
56 | 52 |
|
57 |
| - - name: Test macOS |
58 |
| - if: matrix.os == 'macos-latest' |
59 |
| - run: | |
60 |
| - python3 -m pip install --upgrade pip |
61 |
| - python3 -m pip install pytest |
62 |
| - python3 -m pip install -r requirements.txt |
63 |
| - python3 -m pytest brainspace |
| 53 | + - name: Test macOS |
| 54 | + if: matrix.os == 'macos-latest' |
| 55 | + run: | |
| 56 | + python3 -m pip install --upgrade pip |
| 57 | + python3 -m pip install pytest |
| 58 | + python3 -m pip install -r requirements.txt |
| 59 | + python3 -m pytest brainspace |
64 | 60 |
|
65 |
| - matlab_unittests: |
66 |
| - runs-on: ubuntu-latest |
| 61 | + matlab_unittests: |
| 62 | + runs-on: ubuntu-latest |
67 | 63 | steps:
|
68 |
| - - uses: actions/checkout@v2 |
69 |
| - - name: Install MATLAB |
70 |
| - uses: matlab-actions/setup-matlab@v0 |
71 |
| - - name: Run tests |
72 |
| - uses: matlab-actions/run-tests@v0 |
73 |
| - with: |
74 |
| - source-folder: matlab |
| 64 | + - uses: actions/checkout@v2 |
| 65 | + - name: Install MATLAB |
| 66 | + uses: matlab-actions/setup-matlab@v0 |
| 67 | + - name: Run tests |
| 68 | + uses: matlab-actions/run-tests@v0 |
| 69 | + with: |
| 70 | + source-folder: matlab |
0 commit comments