|
3 | 3 | push: |
4 | 4 | branches: |
5 | 5 | - "main" |
6 | | - - "v4-dev" |
7 | 6 | - "test-me/*" |
8 | 7 | pull_request: |
9 | 8 |
|
|
79 | 78 | with: |
80 | 79 | pixi-version: ${{ needs.cache-pixi-lock.outputs.pixi-version }} |
81 | 80 | cache: true |
82 | | - cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released |
| 81 | + cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} |
83 | 82 | # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache |
84 | 83 | - name: Restore cached hypothesis directory |
85 | 84 | id: restore-hypothesis-cache |
@@ -139,7 +138,7 @@ jobs: |
139 | 138 | with: |
140 | 139 | pixi-version: ${{ needs.cache-pixi-lock.outputs.pixi-version }} |
141 | 140 | cache: true |
142 | | - cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released |
| 141 | + cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} |
143 | 142 | - name: Integration test |
144 | 143 | run: | |
145 | 144 | pixi run test-notebooks -v -s --html="${{ env.COVERAGE_REPORT }}" --self-contained-html --cov=parcels --cov-report=xml |
@@ -184,7 +183,7 @@ jobs: |
184 | 183 | with: |
185 | 184 | pixi-version: ${{ needs.cache-pixi-lock.outputs.pixi-version }} |
186 | 185 | cache: true |
187 | | - cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released |
| 186 | + cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} |
188 | 187 | - name: Typechecking |
189 | 188 | run: | |
190 | 189 | pixi run typing --non-interactive --html-report mypy-report |
@@ -212,14 +211,14 @@ jobs: |
212 | 211 | with: |
213 | 212 | pixi-version: ${{ needs.cache-pixi-lock.outputs.pixi-version }} |
214 | 213 | cache: true |
215 | | - cache-write: ${{ github.event_name == 'push' && github.ref_name == 'v4-dev' }} # TODO: Update v4-dev to main when v4 is released |
| 214 | + cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} |
216 | 215 | - run: pixi run get-parcels-alpha-version >> $GITHUB_ENV |
217 | 216 | - run: echo "PARCELS_ALPHA_VERSION is $PARCELS_ALPHA_VERSION" |
218 | 217 | - name: Build conda package |
219 | 218 | uses: prefix-dev/rattler-build-action@v0.2.34 |
220 | 219 | with: |
221 | 220 | recipe-path: .github/ci/recipe.yaml |
222 | | - - if: github.ref == 'refs/heads/v4-dev' |
| 221 | + - if: github.ref == 'refs/heads/main' |
223 | 222 | run: | |
224 | 223 | for pkg in $(find output -type f \( -name "*.conda" -o -name "*.tar.bz2" \) ); do |
225 | 224 | echo "Uploading ${pkg}" |
|
0 commit comments