-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kevin Su <[email protected]>
- Loading branch information
Showing
62 changed files
with
1,377 additions
and
705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,41 @@ concurrency: | |
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.8", "3.11", "3.12"] | ||
steps: | ||
- uses: insightsengineering/disk-space-reclaimer@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
# This path is specific to Ubuntu | ||
path: ~/.cache/pip | ||
# 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 | ||
run: | | ||
make setup | ||
pip uninstall -y pandas | ||
pip freeze | ||
- name: Test with coverage | ||
run: | | ||
make unit_test_codecov | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: false | ||
files: coverage.xml | ||
|
||
build-with-extras: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
|
@@ -46,9 +81,6 @@ jobs: | |
if: ${{ matrix.python-version != '3.12' }} | ||
run: | | ||
make unit_test_extras_codecov | ||
- name: Test with coverage | ||
run: | | ||
make unit_test_codecov | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
@@ -207,6 +239,7 @@ jobs: | |
# onnx-tensorflow needs a version of tensorflow that does not work with protobuf>4. | ||
# The issue is being tracked on the tensorflow side in https://github.com/tensorflow/tensorflow/issues/53234#issuecomment-1330111693 | ||
# flytekit-onnx-tensorflow | ||
- flytekit-openai | ||
- flytekit-pandera | ||
- flytekit-papermill | ||
- flytekit-polars | ||
|
@@ -250,6 +283,7 @@ jobs: | |
plugin-names: "flytekit-whylogs" | ||
steps: | ||
- uses: insightsengineering/disk-space-reclaimer@v1 | ||
if: ${{ matrix.plugin-names == 'flytekit-envd' }} | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
|
@@ -264,11 +298,12 @@ jobs: | |
key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.txt', format('plugins/{0}/requirements.txt', matrix.plugin-names ))) }} | ||
- name: Install dependencies | ||
run: | | ||
export SETUPTOOLS_SCM_PRETEND_VERSION="2.0.0" | ||
make setup | ||
cd plugins/${{ matrix.plugin-names }} | ||
pip install --pre . | ||
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi | ||
pip install --pre -U $GITHUB_WORKSPACE | ||
pip install . | ||
if [ -f dev-requirements.in ]; then pip install -r dev-requirements.in; fi | ||
pip install -U $GITHUB_WORKSPACE | ||
pip freeze | ||
- name: Test with coverage | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.9-slim-bookworm | ||
FROM python:3.9-slim-bookworm as agent-slim | ||
|
||
MAINTAINER Flyte Team <[email protected]> | ||
LABEL org.opencontainers.image.source=https://github.com/flyteorg/flytekit | ||
|
@@ -7,16 +7,22 @@ ARG VERSION | |
|
||
RUN apt-get update && apt-get install build-essential -y | ||
|
||
RUN pip install prometheus-client | ||
RUN pip install prometheus-client grpcio-health-checking | ||
RUN pip install --no-cache-dir -U flytekit==$VERSION \ | ||
flytekitplugins-bigquery==$VERSION \ | ||
flytekitplugins-airflow==$VERSION \ | ||
flytekitplugins-mmcloud==$VERSION \ | ||
flytekitplugins-spark==$VERSION \ | ||
flytekitplugins-bigquery==$VERSION \ | ||
flytekitplugins-chatgpt==$VERSION \ | ||
flytekitplugins-snowflake==$VERSION \ | ||
&& apt-get clean autoclean \ | ||
&& apt-get autoremove --yes \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \ | ||
&& : | ||
|
||
CMD pyflyte serve agent --port 8000 | ||
|
||
FROM agent-slim as agent-all | ||
ARG VERSION | ||
|
||
RUN pip install --no-cache-dir -U \ | ||
flytekitplugins-mmcloud==$VERSION \ | ||
flytekitplugins-spark==$VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.