-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.23 KB
/
Copy pathbuild-and-test.yml
File metadata and controls
53 lines (44 loc) · 1.23 KB
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
name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [published]
workflow_dispatch: {}
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
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 build
pip install -e .
- name: Build package
run: python -m build
- name: Test main function
env:
MODEL: ${{ secrets.MODEL }}
BASE_URL: ${{ secrets.BASE_URL }}
API_KEY: ${{ secrets.API_KEY }}
APP_ID: ${{ secrets.APP_ID }}
APP_SECRET: ${{ secrets.APP_SECRET }}
APP_TOKEN: ${{ secrets.APP_TOKEN }}
RECEIVE_ID: ${{ secrets.RECEIVE_ID }}
TABLE_ID: ${{ secrets.TABLE_ID }}
QQEMAIL: ${{ secrets.QQEMAIL }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
run: |
python -c "from ThinkingInLangGraph import main; main(True)"