Skip to content

Commit 35aae2c

Browse files
Fix PGO and cross-arch CI builds failing on missing typing_extensions (#308)
Co-authored-by: Samuel Colvin <s@muelcolvin.com>
1 parent 3ed7fb5 commit 35aae2c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/actions/build-pgo-wheel/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ runs:
4141

4242
- name: generate pgo data
4343
run: |
44+
pip install typing_extensions
4445
pip install pydantic-monty --no-index --no-deps --find-links pgo-wheel --force-reinstall
4546
python exercise.py
4647
rustup run ${{ inputs.rust-toolchain }} bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/$RUST_HOST/bin/llvm-profdata >> "$GITHUB_ENV"'

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ jobs:
430430
ls -lh /dist/
431431
python3 -m venv venv
432432
source venv/bin/activate
433+
python3 -m pip install typing_extensions
433434
python3 -m pip install pydantic-monty --no-index --no-deps --find-links /dist --force-reinstall
434435
python3 -c "import pydantic_monty; print(pydantic_monty.Monty('1 + 2').run())"
435436
@@ -463,7 +464,8 @@ jobs:
463464
merge-multiple: true
464465
path: dist
465466

466-
- run: pip install pydantic-monty --no-index --find-links dist --force-reinstall
467+
- run: pip install typing_extensions
468+
- run: pip install pydantic-monty --no-index --no-deps --find-links dist --force-reinstall
467469
- run: python -c "import pydantic_monty; print(pydantic_monty.Monty('1 + 2').run())"
468470

469471
# Inspect built artifacts

0 commit comments

Comments
 (0)