Skip to content

Commit

Permalink
Register only the P0 functional tests
Browse files Browse the repository at this point in the history
Signed-off-by: eduardo apolinario <[email protected]>
  • Loading branch information
eapolinario committed Jul 25, 2023
1 parent 604d7d0 commit 66a9317
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions .github/workflows/end2end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -42,13 +49,35 @@ jobs:
python -m pip install --upgrade pip
pip install flytekit
pip freeze
- name: Register flytesnacks examples
uses: unionai/[email protected]
- name: Checkout flytesnacks
uses: actions/checkout@v3
with:
flytesnacks: true
project: flytesnacks
version: "latest"
domain: development
repository: flyteorg/flytesnacks
path: flytesnacks
# TODO: Enable this once refactored version produces a release tag
# ref: ${{ env.FLYTESNACKS_VERSION }}
- name: Register specific tests
run: |
for f in basics/basics/basic_workflow.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: Pre Upgrade Tests
if: ${{ github.event.repository.name == 'flyteadmin' }}
env:
Expand Down

0 comments on commit 66a9317

Please sign in to comment.