-
Notifications
You must be signed in to change notification settings - Fork 25
58 lines (55 loc) · 1.98 KB
/
integration-tests.yml
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
55
56
57
58
name: Integration tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
MODEL_STORE_AWS_BUCKET: ${{ secrets.MODEL_STORE_AWS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
MODEL_STORE_GCP_PROJECT: ${{ secrets.MODEL_STORE_GCP_PROJECT }}
MODEL_STORE_GCP_BUCKET: ${{ secrets.MODEL_STORE_GCP_BUCKET }}
MODEL_STORE_AZURE_CONTAINER: ${{ secrets.MODEL_STORE_AZURE_CONTAINER }}
AZURE_ACCOUNT_NAME: ${{ secrets.AZURE_ACCOUNT_NAME }}
AZURE_ACCESS_KEY: ${{ secrets.AZURE_ACCESS_KEY }}
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
MODEL_STORE_ROOT_PREFIX: "/home/runner"
MODEL_STORE_MINIO_BUCKET: ${{ secrets.MODEL_STORE_AWS_BUCKET }}
MINIO_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}
MINIO_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
storage-type: ["filesystem", "aws-s3", "google-cloud-storage", "azure-container", "minio"]
env:
MODEL_STORE_STORAGE: ${{ matrix.storage-type }}
steps:
- name: 'Check out repo'
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
cd workflows/
make setup
pip install -r requirements/${{ matrix.storage-type }}.txt
pip install -e ..
- name: 'Authenticate to Google Cloud'
if: ${{ env.MODEL_STORE_STORAGE == 'google-cloud-storage' }}
uses: 'google-github-actions/auth@v1'
with:
create_credentials_file: true
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_ID_PROVIDER }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- name: Run integration script
run: |
cd workflows/
python main.py --modelstore-in ${{ matrix.storage-type }}