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 ece6632 commit 2c96d99
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 @@ -440,15 +440,15 @@ jobs:
- 'MANIFEST.in'
- '.github/workflows/test.yml'
- uses: dtolnay/rust-toolchain@beta
if: steps.changes.outputs.changed == 'true'
if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }}
# Caching
- name: Sccache Setup
if: steps.changes.outputs.changed == 'true'
if: ${{ steps.changes.outputs.changed == 'true' || contains(github.event.pull_request.labels.*.name, 'release') }}
uses: Xuanwo/sccache-action@c94e27bef21ab3fb4a5152c8a878c53262b4abb0
with:
version: "v0.4.0-pre.6"
- 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 @@ -457,13 +457,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 2c96d99

Please sign in to comment.