-
Notifications
You must be signed in to change notification settings - Fork 40
34 lines (29 loc) · 1003 Bytes
/
truss_deploy.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
name: Droid deploy truss
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
paths:
- '**/model.py'
jobs:
truss_test:
if: ${{ github.triggering_actor == 'factory-droid' || github.triggering_actor == 'factory-droid[bot]'}}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies (if any)
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/basetenlabs/truss.git requests tenacity --upgrade
- name: Run tests
env:
BASETEN_API_KEY: ${{ secrets.BASETEN_API_KEY }}
run: python bin/test_truss_deploy.py