Nightly CI #449
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |