-
Notifications
You must be signed in to change notification settings - Fork 631
52 lines (45 loc) · 1.36 KB
/
langchain-tests.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
name: Langchain Tests
permissions:
contents: read
id-token: write
#on:
# schedule:
# - cron: '0 4 * * *'
# workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
langchain-tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
with:
ref: ${{ github.sha }}
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ secrets.aws_role_arn }}
aws-region: us-east-1
role-duration-seconds: 21600
role-session-name: deeplake-${{ github.sha }}
- name: configure environment
working-directory: .github/langchain-tests
shell: bash
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 setup_actions.py
curl -sSL https://install.python-poetry.org | python3 -
poetry install
pip install -r requirements.txt
- name: run tests
working-directory: .github/langchain-tests
env:
ACTIVELOOP_TOKEN: ${{ secrets.ACTIVELOOP_HUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
BUCKET: ${{ secrets.AWS_S3_BUCKET }}
run: |
source .venv/bin/activate
python3 -m pytest test_activeloop*