Skip to content

Commit ba9532d

Browse files
authored
Merge pull request #186 from projectsyn/fix/ci
Fix CI issues (flaky Python tests & missing rustfmt)
2 parents 97593ac + de9b8d1 commit ba9532d

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/python.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
- name: Build wheels
6767
uses: PyO3/maturin-action@v1
6868
with:
69+
before-script-linux: |
70+
rustup show active-toolchain
71+
rustc --version
6972
target: ${{ matrix.platform.target }}
7073
args: --release --out dist --find-interpreter
7174
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
@@ -80,7 +83,14 @@ jobs:
8083
shell: bash
8184
run: |
8285
set -e
86+
rustup show active-toolchain
87+
rustc --version
8388
rustup install --profile=minimal stable
89+
rustup show active-toolchain
90+
rustc --version
91+
rustup default stable
92+
rustup show active-toolchain
93+
rustc --version
8494
python3 -m venv .venv
8595
source .venv/bin/activate
8696
pip install reclass-rs --find-links dist --force-reinstall

.github/workflows/rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v5
16-
- run: rustup install --profile=minimal stable
16+
- run: |
17+
rustup install --profile=minimal stable
18+
rustup component add --toolchain stable-x86_64-unknown-linux-gnu rustfmt
1719
- run: cargo +stable fmt --check
1820
- uses: actions-rs/clippy-check@v1
1921
with:

0 commit comments

Comments
 (0)