Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Apr 23, 2024
1 parent e3697d6 commit 82a3587
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/checks_new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
echo "PACKAGES=$(find examples -maxdepth 1 -type d -exec basename '{}' \; \
| grep -v -e 'testing' -e 'examples' \
| grep -v -e 'airflow_plugin' -e 'forecasting_sales' \
| grep -v -e 'airflow_plugin' -e 'forecasting_sales' -e 'onnx_plugin' \
| sort \
| jq --raw-input . \
| jq --slurp . \
Expand Down Expand Up @@ -58,21 +58,22 @@ jobs:
# Look to see if there is a cache hit for the corresponding requirements files
key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.in', 'requirements.in')) }}
- name: Install dependencies
working-directory: ${{ matrix.example }}
run: |
sudo apt-get update && sudo apt install python3-packaging
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r requirements.in
uv pip install flytekit flytekitplugins-envd
if [ -f requirements.in ]; then uv pip install -r requirements.in; fi
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.FLYTE_BOT_USERNAME }}
password: ${{ secrets.FLYTE_BOT_PAT }}
- name: Pyflyte package
working-directory: ${{ matrix.example }}
run: |
pip list
pip freeze
source .venv/bin/activate
cd examples/${{ matrix.example }}
pyflyte -vvv --pkgs ${{ matrix.example }} package -o spark-package.tgz --force --fast
1 change: 0 additions & 1 deletion examples/mmcloud_agent/requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
flytekitplugins-envd
flytekitplugins-mmcloud
1 change: 0 additions & 1 deletion examples/mmcloud_plugin/requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
flytekitplugins-envd
flytekitplugins-mmcloud
1 change: 0 additions & 1 deletion examples/ray_plugin/requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
flytekitplugins-ray
flytekitplugins-envd
3 changes: 2 additions & 1 deletion examples/snowflake_plugin/requirements.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
flytekitplugins-snowflake
flytekitplugins-snowflake==1.7.0
flytekit==1.7.0

0 comments on commit 82a3587

Please sign in to comment.