forked from flyteorg/flyte-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.52 KB
/
Copy pathintegration_tests.yml
File metadata and controls
52 lines (49 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Integration Tests
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * *" # This schedule runs at 10am UTC every day
pull_request:
paths:
- 'examples/integration_tests.py'
- '.github/workflows/integration_tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
fail-fast: false
defaults:
run:
shell: bash
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up the environment
uses: ./.github/actions/setup-python-env
with:
python-version: ${{ matrix.python-version }}
- name: Cache uv packages
uses: actions/cache@v4
with:
path: ~/.cache/uv
key: uv-${{ runner.os }}-${{ matrix.python-version }}
- name: Install flyte & Build wheel
run: |
export SETUPTOOLS_SCM_PRETEND_VERSION="9.9.9.dev"
make dist
- name: Install plugins and example dependencies
working-directory: plugins
run: |
uv pip install ./ray ./pytorch ./dask ./spark ./vllm ./sglang
uv pip install "../[examples-test]" # Install flyte with example test dependencies
uv pip list
- name: Run integration tests
env:
FLYTE_API_KEY: "${{ secrets.FLYTE_API_KEY }}"
run: |
uv run python -m pytest -n 10 -v examples/integration_tests.py