forked from towhee-io/towhee
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.2 KB
/
nightly_ci.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: Nightly CI
on:
schedule:
# * is a special character in YAML so you have to quote this string
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
- cron: "0 22 * * *"
jobs:
test:
name: Test
runs-on: self-hosted
strategy:
matrix:
python: [ 3.8, 3.7, 3.6 ]
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python }}
- name: Run Test
env:
TOWHEE_WORKER: True
run: |
cd tests/testcases
python3 -m pip install -U pip
python3 -m pip install --no-cache-dir -r requirements.text
export TOWHEE_WORKER=True
python3 -W ignore test_main.py