mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:24 +00:00
[ty] Use debug builds for conformance tests and run them single threaded (#19938)
This commit is contained in:
parent
7d8f7c20da
commit
c7af595fc1
1 changed files with 7 additions and 4 deletions
11
.github/workflows/typing_conformance.yaml
vendored
11
.github/workflows/typing_conformance.yaml
vendored
|
@ -54,6 +54,9 @@ jobs:
|
||||||
|
|
||||||
- name: Compute diagnostic diff
|
- name: Compute diagnostic diff
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
# TODO: Remove this once we fixed the remaining panics in the conformance suite.
|
||||||
|
TY_MAX_PARALLELISM: 1
|
||||||
run: |
|
run: |
|
||||||
RUFF_DIR="$GITHUB_WORKSPACE/ruff"
|
RUFF_DIR="$GITHUB_WORKSPACE/ruff"
|
||||||
|
|
||||||
|
@ -63,15 +66,15 @@ jobs:
|
||||||
|
|
||||||
echo "new commit"
|
echo "new commit"
|
||||||
git rev-list --format=%s --max-count=1 "$GITHUB_SHA"
|
git rev-list --format=%s --max-count=1 "$GITHUB_SHA"
|
||||||
cargo build --release --bin ty
|
cargo build --bin ty
|
||||||
mv target/release/ty ty-new
|
mv target/debug/ty ty-new
|
||||||
|
|
||||||
MERGE_BASE="$(git merge-base "$GITHUB_SHA" "origin/$GITHUB_BASE_REF")"
|
MERGE_BASE="$(git merge-base "$GITHUB_SHA" "origin/$GITHUB_BASE_REF")"
|
||||||
git checkout -b old_commit "$MERGE_BASE"
|
git checkout -b old_commit "$MERGE_BASE"
|
||||||
echo "old commit (merge base)"
|
echo "old commit (merge base)"
|
||||||
git rev-list --format=%s --max-count=1 old_commit
|
git rev-list --format=%s --max-count=1 old_commit
|
||||||
cargo build --release --bin ty
|
cargo build --bin ty
|
||||||
mv target/release/ty ty-old
|
mv target/debug/ty ty-old
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue