-
Notifications
You must be signed in to change notification settings - Fork 255
50 lines (48 loc) · 1.79 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
38
39
40
41
42
43
44
45
46
47
48
49
50
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 * * *"
pull_request:
# file paths to consider in the event
paths:
- '.github/workflows/nightly_ci.yml'
jobs:
test:
name: Test
runs-on: self-hosted
container:
image: towhee/towhee-ut:latest
options: --user root
volumes:
- /__w/towhee/towhee:/__w/towhee/towhee
strategy:
matrix:
python: [ 3.9, 3.8, 3.7 ]
steps:
- name: work around permission
run: git config --global --add safe.directory /__w/towhee/towhee
- 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 /__w/towhee/towhee/tests/testcases
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends -y ffmpeg libsm6 libxext6
python3 -m pip install -U pip
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install --no-cache-dir -r requirements.text
export TOWHEE_WORKER=True
python3 -W ignore test_main.py