Skip to content

Commit

Permalink
Merge pull request #3526 from davidhewitt/ci-beta
Browse files Browse the repository at this point in the history
ci: include beta as an allowed-to-fail job
  • Loading branch information
messense authored Oct 19, 2023
2 parents 638a9ad + e502c13 commit 3aaa7e5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ on:
rust-target:
required: true
type: string
msrv:
required: false
type: string
extra-features:
required: true
type: string

jobs:
build:
continue-on-error: ${{ endsWith(inputs.python-version, '-dev') || contains(fromJSON('["3.7", "pypy3.7"]'), inputs.python-version) }}
continue-on-error: ${{ endsWith(inputs.python-version, '-dev') || contains(fromJSON('["3.7", "pypy3.7"]'), inputs.python-version) || inputs.rust == 'beta' }}
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -49,18 +46,18 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
key: cargo-${{ inputs.python-architecture }}-${{ inputs.os }}-${{ inputs.msrv }}
key: cargo-${{ inputs.python-architecture }}
continue-on-error: true

- if: inputs.os == 'ubuntu-latest'
name: Prepare LD_LIBRARY_PATH (Ubuntu only)
run: echo LD_LIBRARY_PATH=${pythonLocation}/lib >> $GITHUB_ENV

- if: inputs.msrv == 'MSRV'
- if: inputs.rust == '1.56.0'
name: Prepare minimal package versions (MSRV only)
run: nox -s set-minimal-package-versions

- if: inputs.rust == 'nightly' || inputs.msrv == 'MSRV'
- if: inputs.rust != 'stable'
name: Ignore changed error messages when using trybuild
run: echo "TRYBUILD=overwrite" >> "$GITHUB_ENV"

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ jobs:
python-architecture: ${{ matrix.platform.python-architecture }}
rust: ${{ matrix.rust }}
rust-target: ${{ matrix.platform.rust-target }}
msrv: ${{ matrix.msrv }}
extra-features: ${{ matrix.platform.extra-features }}
secrets: inherit
strategy:
Expand Down Expand Up @@ -179,7 +178,6 @@ jobs:
python-architecture: ${{ matrix.platform.python-architecture }}
rust: ${{ matrix.rust }}
rust-target: ${{ matrix.platform.rust-target }}
msrv: ${{ matrix.msrv }}
extra-features: ${{ matrix.platform.extra-features }}
secrets: inherit
strategy:
Expand Down Expand Up @@ -228,7 +226,6 @@ jobs:
python-architecture: "x64",
rust-target: "x86_64-unknown-linux-gnu",
}
msrv: "MSRV"
extra-features: ""

# Test the `nightly` feature
Expand All @@ -242,6 +239,17 @@ jobs:
}
extra-features: "nightly multiple-pymethods"

# Run rust beta to help catch toolchain regressions
- rust: beta
python-version: "3.12"
platform:
{
os: "ubuntu-latest",
python-architecture: "x64",
rust-target: "x86_64-unknown-linux-gnu",
}
extra-features: "multiple-pymethods"

# Test 32-bit Windows only with the latest Python version
- rust: stable
python-version: "3.12"
Expand Down

0 comments on commit 3aaa7e5

Please sign in to comment.