Skip to content

Commit

Permalink
fix python command
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Mar 23, 2024
1 parent 2ce28e2 commit 77a7ac2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
if: ${{ steps.get-sig.outputs.stash-hit != 'true' }}
working-directory: velox_main
run: |
python -m venv .venv
python3 -m venv .venv
source .venv/bin/activate
make python-build
Expand All @@ -140,9 +140,9 @@ jobs:
working-directory: velox_main
run: |
source .venv/bin/activate
python -m pip install deepdiff
python scripts/signature.py export --spark /tmp/signatures/spark_signatures_main.json
python scripts/signature.py export --presto /tmp/signatures/presto_signatures_main.json
python3 -m pip install deepdiff
python3 scripts/signature.py export --spark /tmp/signatures/spark_signatures_main.json
python3 scripts/signature.py export --presto /tmp/signatures/presto_signatures_main.json
- name: Save Function Signature Stash
if: ${{ steps.get-sig.outputs.stash-hit != 'true' }}
Expand All @@ -166,7 +166,7 @@ jobs:
env:
EXTRA_CMAKE_FLAGS: "-DVELOX_ENABLE_ARROW=ON -DVELOX_BUILD_PYTHON_PACKAGE=ON ${{ inputs.extraCMakeFlags }}"
run: |
EXTRA_CMAKE_FLAGS="-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")"
EXTRA_CMAKE_FLAGS="-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") $EXTRA_CMAKE_FLAGS"
make debug
- name: Ccache after
Expand All @@ -183,19 +183,19 @@ jobs:
env:
VELOX_BUILD_DIR: "_build/debug"
run: |
python -m venv .venv
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
python3 -m pip install -e .
- name: Create and test new function signatures
id: sig-check
run: |
source .venv/bin/activate
python -m pip install deepdiff
python scripts/signature.py export --spark /tmp/signatures/spark_signatures_contender.json
python scripts/signature.py export --presto /tmp/signatures/presto_signatures_contender.json
python3 -m pip install deepdiff
python3 scripts/signature.py export --spark /tmp/signatures/spark_signatures_contender.json
python3 scripts/signature.py export --presto /tmp/signatures/presto_signatures_contender.json
python scripts/signature.py bias /tmp/signatures/presto_signatures_main.json \
python3 scripts/signature.py bias /tmp/signatures/presto_signatures_main.json \
/tmp/signatures/presto_signatures_contender.json \
/tmp/signatures/presto_bias_functions 2>&1 > /tmp/signatures/presto-err-message \
|| echo "::notice ::Presto Signature check failed" \
Expand All @@ -206,7 +206,7 @@ jobs:
echo "presto=false" >> $GITHUB_OUTPUT
fi
python scripts/signature.py bias /tmp/signatures/spark_signatures_main.json \
python3 scripts/signature.py bias /tmp/signatures/spark_signatures_main.json \
/tmp/signatures/spark_signatures_contender.json \
/tmp/signatures/spark_bias_functions \
|| echo "::notice ::Spark Signature check failed" \
Expand Down

0 comments on commit 77a7ac2

Please sign in to comment.