-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (50 loc) · 2.11 KB
/
workflow.yaml
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
53
54
name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install anyscale ray prefect prefect_ray s3fs
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::959243851260:role/github-action-prefect-integration
role-session-name: s3access
aws-region: us-west-2
- name: Test Prefect <> Anyscale Integration (AWS secret manager)
env:
ANYSCALE_HOST: ${{ secrets.ANYSCALE_HOST }}
ANYSCALE_CLI_TOKEN: ${{ secrets.ANYSCALE_CLI_TOKEN }}
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
PREFECT_API_KEY: ${{ secrets.PREFECT_API_KEY }}
run: |
pip install -e .
envsubst < ci/prefect-agent-service-awssecrets-ci.yaml > /tmp/prefect-agent-service-awssecrets.out
anyscale service rollout -f /tmp/prefect-agent-service-awssecrets.out
PYTHONPATH=$PYTHONPATH:. python ci/submit_prefect_run_and_check.py --queue test-awssecrets
- name: Test Prefect <> Anyscale Integration (PREFECT_API_KEY)
env:
ANYSCALE_HOST: ${{ secrets.ANYSCALE_HOST }}
ANYSCALE_CLI_TOKEN: ${{ secrets.ANYSCALE_CLI_TOKEN }}
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
PREFECT_API_KEY: ${{ secrets.PREFECT_API_KEY }}
run: |
pip install -e .
envsubst < ci/prefect-agent-service-ci.yaml > /tmp/prefect-agent-service.out
anyscale service rollout -f /tmp/prefect-agent-service.out
PYTHONPATH=$PYTHONPATH:. python ci/submit_prefect_run_and_check.py --queue test
PYTHONPATH=$PYTHONPATH:. python ci/test_ray_job_integration.py