-
Notifications
You must be signed in to change notification settings - Fork 213
37 lines (32 loc) · 980 Bytes
/
testing.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
name: "Testing"
on:
push:
branches: ["main", "dev"]
paths:
- 'bilibili_api/**'
- 'tests/**'
schedule:
- cron: '0 4 * * 6'
jobs:
test-3_8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Start test
env:
BILI_SESSDATA: ${{ secrets.BILI_SESSDATA }}
BILI_CSRF: ${{ secrets.BILI_CSRF }}
BILI_RATELIMIT: 1.5 # WTF? 1 秒间隔每次 action 测试必须有两个函数 timeout
BILI_BUVID3: ${{ secrets.BILI_BUVID3 }}
BILI_PHONE: ${{ secrets.BILI_PHONE }}
BILI_PASSWORD: ${{ secrets.BILI_PASSWORD }}
BILI_DEDEUSERID: ${{ secrets.BILI_DEDEUSERID }}
run: "python -m tests.main -a"