|
49 | 49 | matrix: |
50 | 50 | test_group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |
51 | 51 | # see pyprojec.toml: [tool.pixi.feature.test] for available test types |
52 | | - os: [ubuntu-latest, windows-latest] # macos-latest, macos-13 not supported yet |
| 52 | + os: [ubuntu-latest, windows-latest, macos-latest] # , macos-13 not supported yet |
53 | 53 | env: ["py311", "py312"] |
54 | | - shell: |
55 | | - - bash |
56 | 54 |
|
57 | 55 | runs-on: ${{ matrix.os }} |
58 | 56 |
|
|
61 | 59 | GCP_AVAILABLE: "${{ secrets.GCP_SA_KEY }}" |
62 | 60 | ZENODO_SANDBOX_PAT: "${{ secrets.ZENODO_SANDBOX_PAT }}" |
63 | 61 | CI: true |
64 | | - |
65 | 62 | steps: |
66 | 63 | - uses: actions/checkout@v4 |
67 | 64 | with: |
@@ -105,27 +102,35 @@ jobs: |
105 | 102 | pixi run --environment ${{matrix.env}} test-all \ |
106 | 103 | --splits 10 \ |
107 | 104 | --group ${{ matrix.test_group }} \ |
108 | | - --splitting-algorithm=least_duration |
109 | | - |
110 | | - - name: Run Tests for Windows (os='Windows') |
111 | | - if: runner.os == 'Windows' |
112 | | - run: | |
113 | | - pixi run --environment ${{matrix.env}} test-simple --splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration |
| 105 | + --splitting-algorithm=least_duration \ |
| 106 | + --showlocals \ |
| 107 | + --show-capture=all |
114 | 108 |
|
115 | | - - name: Run Report Generation Tests (os='Linux') |
116 | | - if: runner.os == 'Linux' |
117 | | - shell: bash -el {0} |
118 | | - run: | |
119 | 109 | cd tests/test_report |
120 | 110 | pixi run -e ${{ matrix.env }} snakemake \ |
121 | 111 | --use-conda \ |
122 | 112 | --cores 1 \ |
123 | 113 | --report report.zip |
124 | 114 |
|
| 115 | + - name: Run Tests for MacOS (os='macOS') |
| 116 | + if: runner.os == 'macOS' |
| 117 | + run: | |
| 118 | + pixi run --environment ${{matrix.env}} test-simple \ |
| 119 | + --splits 10 \ |
| 120 | + --group ${{ matrix.test_group }} \ |
| 121 | + --splitting-algorithm=least_duration \ |
| 122 | + --showlocals \ |
| 123 | + --show-capture=all |
| 124 | +
|
| 125 | + - name: Run Tests for Windows (os='Windows') |
| 126 | + if: runner.os == 'Windows' |
| 127 | + run: | |
| 128 | + pixi run --environment ${{matrix.env}} test-simple --splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration --showlocals --show-capture=all |
| 129 | +
|
125 | 130 | build-container-image: |
126 | 131 | if: github.event.pull_request.merged != true || github.ref != 'refs/heads/main' |
127 | 132 | runs-on: ubuntu-latest |
128 | | - needs: tests |
| 133 | + needs: tests |
129 | 134 | steps: |
130 | 135 | - uses: actions/checkout@v4 |
131 | 136 |
|
|
0 commit comments