-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize registration of p0 tests (#79)
* Register only the P0 functional tests Signed-off-by: eduardo apolinario <[email protected]> * Optimize functional tests registration Signed-off-by: eduardo apolinario <[email protected]> * Comment out registration of all flytesnacks examples Signed-off-by: eduardo apolinario <[email protected]> * Fix identation of registration of all flytesnacks tests Signed-off-by: eduardo apolinario <[email protected]> * Install flyte decks plugin Signed-off-by: eduardo apolinario <[email protected]> --------- Signed-off-by: eduardo apolinario <[email protected]> Co-authored-by: eduardo apolinario <[email protected]>
- Loading branch information
1 parent
a157798
commit 3b0e545
Showing
1 changed file
with
45 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,14 @@ jobs: | |
endtoend: | ||
name: End to End tests | ||
runs-on: ubuntu-latest | ||
env: | ||
FLYTESNACKS_VERSION: '' | ||
steps: | ||
- name: Set latest Flytesnacks release | ||
if: ${{ env.FLYTESNACKS_VERSION == '' }} | ||
run: | | ||
FLYTESNACKS_VERSION="$(curl --silent https://api.github.com/repos/flyteorg/flytesnacks/releases/latest | jq -r .tag_name)" | ||
echo "FLYTESNACKS_VERSION=${FLYTESNACKS_VERSION}" >> ${GITHUB_ENV} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: unionai/[email protected] | ||
|
@@ -40,15 +47,47 @@ jobs: | |
- name: Setup Flytekit | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flytekit | ||
pip install flytekit flytekitplugins-deck-standard | ||
pip freeze | ||
- name: Register flytesnacks examples | ||
- name: Checkout flytesnacks | ||
if: ${{ inputs.priorities == 'P0' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: flyteorg/flytesnacks | ||
path: flytesnacks | ||
ref: ${{ env.FLYTESNACKS_VERSION }} | ||
- name: Register P0 tests | ||
if: ${{ inputs.priorities == 'P0' }} | ||
run: | | ||
for f in basics/basics/basic_workflow.py \ | ||
basics/basics/deck.py \ | ||
basics/basics/hello_world.py \ | ||
basics/basics/lp.py \ | ||
basics/basics/named_outputs.py \ | ||
control_flow/control_flow/chain_entities.py \ | ||
control_flow/control_flow/dynamics.py \ | ||
control_flow/control_flow/map_task.py \ | ||
control_flow/control_flow/subworkflows.py \ | ||
type_system/type_system/custom_objects.py \ | ||
type_system/type_system/schema.py \ | ||
type_system/type_system/typed_schema.py ; | ||
do | ||
pyflyte --config ./boilerplate/flyte/end2end/functional-test-config.yaml \ | ||
register \ | ||
--project flytesnacks \ | ||
--domain development \ | ||
--image cr.flyte.org/flyteorg/flytekit:py3.11-latest \ | ||
--version ${{ env.FLYTESNACKS_VERSION }} \ | ||
flytesnacks/examples/$f; | ||
done | ||
- name: Register all flytesnacks examples | ||
if: ${{ inputs.priorities != 'P0' }} | ||
uses: unionai/[email protected] | ||
with: | ||
flytesnacks: true | ||
project: flytesnacks | ||
version: "latest" | ||
domain: development | ||
flytesnacks: true | ||
project: flytesnacks | ||
version: ${{ env.FLYTESNACKS_VERSION }} | ||
domain: development | ||
- name: Pre Upgrade Tests | ||
if: ${{ github.event.repository.name == 'flyteadmin' }} | ||
env: | ||
|