-
Notifications
You must be signed in to change notification settings - Fork 23
69 lines (65 loc) · 2.12 KB
/
integration.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Nightly Integration Testing
on:
push:
branches:
- 'main'
- 'dev'
paths:
- 'gato/**'
- 'setup.py'
- 'pyproject.toml'
- 'test/**'
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
branches:
- 'dev'
env:
LOW_PRIV_PAT: ${{ secrets.LOW_PRIV_PAT }}
ORG_MEMBER_REPO_TOKEN: ${{ secrets.ORG_MEMBER_REPO_TOKEN }}
ORG_MEMBER_REPO_WORKFLOW_TOKEN: ${{ secrets.ORG_MEMBER_REPO_WORKFLOW_TOKEN }}
ORG_MEMBER_REPO_WORKFLOW_ADMIN_TOKEN: ${{ secrets.ORG_MEMBER_REPO_WORKFLOW_ADMIN_TOKEN }}
ORG_ADMIN_REPO_TOKEN: ${{ secrets.ORG_ADMIN_REPO_TOKEN }}
ORG_ADMIN_REPO_WORKFLOW_TOKEN: ${{ secrets.ORG_ADMIN_REPO_WORKFLOW_TOKEN }}
ORG_ADMIN_REPO_WORKFLOW_ADMIN_TOKEN: ${{ secrets.ORG_ADMIN_REPO_WORKFLOW_ADMIN_TOKEN }}
ORG_ADMIN_REPO_WORKFLOW_ADMIN_DELETE_TOKEN: ${{ secrets.ORG_ADMIN_REPO_WORKFLOW_ADMIN_DELETE_TOKEN }}
WF_DISPATCH_TOKEN: ${{ secrets.WF_DISPATCH_TOKEN }}
RUN_REF: ${{ github.ref }}
jobs:
SH-Runner-Dispatch:
name: Prepare Integration Test SH Runner
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install requests
- name: Dispatch Runner Event
run: python test/runner_helper.py dispatch
Integration-Testing:
name: Gato Integration Testing
needs: SH-Runner-Dispatch
if: success()
strategy:
max-parallel: 1
matrix:
os: [macos-latest, ubuntu-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: |
python -m pip install --upgrade pip
pip install ".[test]"
- name: Kick off integration tests.
run: |
pytest test/