From 33eba105f662c99c8f7d6a264c84ed350bd1dc39 Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Mon, 10 Jun 2024 16:12:49 +0000 Subject: [PATCH] Pivot out of the repository so that we test the wheel. Change-Id: Ie291a4c1f1e847d9ffb86112df027cc6bc2100c2 Reviewed-on: https://code-review.googlesource.com/c/re2/+/63290 Reviewed-by: Alex Chernyakhovsky Reviewed-by: Paul Wankadia --- .github/workflows/python.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3f5d9a7e..39c106e8 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -61,6 +61,10 @@ jobs: - name: Test wheel run: | "${PYTHON}" -m pip install google_re2-*.whl + # Pivot out of the repository so that we test the wheel. + DIR=$(mktemp -d) + cp re2_test.py "${DIR}" + cd "${DIR}" "${PYTHON}" re2_test.py shell: bash working-directory: python @@ -122,6 +126,10 @@ jobs: name: Test wheel run: | python -m pip install google_re2-*.whl + # Pivot out of the repository so that we test the wheel. + DIR=$(mktemp -d) + cp re2_test.py "${DIR}" + cd "${DIR}" python re2_test.py shell: bash working-directory: python @@ -179,6 +187,10 @@ jobs: - name: Test wheel run: | python -m pip install google_re2-*.whl + # Pivot out of the repository so that we test the wheel. + DIR=$(mktemp -d) + cp re2_test.py "${DIR}" + cd "${DIR}" python re2_test.py shell: bash working-directory: python