diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 58f2c56f2..8cd31316b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -425,15 +425,15 @@ jobs: - 'MANIFEST.in' - '.github/workflows/test.yml' - uses: dtolnay/rust-toolchain@stable - if: steps.changes.outputs.changed == 'true' + if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }} # Caching - name: Cache cargo build - if: steps.changes.outputs.changed == 'true' + if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }} uses: Swatinem/rust-cache@v2 with: shared-key: maturin-build - uses: actions/setup-python@v4 - if: steps.changes.outputs.changed == 'true' + if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }} with: python-version: "3.10" - name: Build and install @@ -442,13 +442,13 @@ jobs: set -ex cargo run sdist -o dist pip install -v dist/maturin-*.tar.gz - if: steps.changes.outputs.changed == 'true' + if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }} - run: maturin --version - if: steps.changes.outputs.changed == 'true' + if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }} - run: python3 -m maturin --version - if: steps.changes.outputs.changed == 'true' + if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }} - name: Upload wheel artifacts - if: steps.changes.outputs.changed == 'true' + if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }} uses: actions/upload-artifact@v3 with: name: wheels