Skip to content

Commit

Permalink
Run bootstrap test on pull requests with release label
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 12, 2023
1 parent 2088d43 commit d50759f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d50759f

Please sign in to comment.