-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (36 loc) · 963 Bytes
/
py-test.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
name: Python Auto Test
on:
push:
paths:
- "apitable.py/**"
- ".github/workflows/py-test.yml"
jobs:
unit_test:
runs-on: ubuntu-latest
environment: api
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.10.12
- name: Python Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.5.1
- name: just build
run: |
cd apitable.py
make install
make setup
- name: test
env:
DOMAIN: ${{secrets.DOMAIN}}
TOKEN: ${{secrets.TOKEN}}
DATASHEET_ID: ${{secrets.PYTHON_DATASHEET_ID}}
DATASHEET_ID_FOR_GET: ${{secrets.PYTHON_DATASHEET_ID_FOR_GET}}
VIEW_ID: ${{secrets.PYTHON_VIEW_ID}}
SPACE_ID: ${{secrets.SPACE_ID}}
FOLDER_ID: ${{secrets.FOLDER_ID}}
run: |
cd apitable.py
make test