mirror of
https://github.com/modelscope/modelscope.git
synced 2026-05-18 05:05:00 +02:00
add daily regression workflow
This commit is contained in:
38
.github/workflows/daily_regression.yaml
vendored
Normal file
38
.github/workflows/daily_regression.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: citest
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# * is a special character in YAML so you have to quote this string
|
||||
- cron: '0 0 * * * *'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
unittest:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: [modelscope-self-hosted]
|
||||
steps:
|
||||
- name: ResetFileMode
|
||||
shell: bash
|
||||
run: |
|
||||
# reset filemode to allow action runner to delete files
|
||||
# generated by root in docker
|
||||
set -e
|
||||
source ~/.bashrc
|
||||
sudo chown -R $USER:$USER $ACTION_RUNNER_DIR
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
lfs: 'true'
|
||||
submodules: 'true'
|
||||
- name: Checkout LFS objects
|
||||
run: git lfs checkout
|
||||
- name: Run unittest
|
||||
shell: bash
|
||||
run: |
|
||||
set -e
|
||||
source /mnt/modelscope/regression_env.sh
|
||||
bash .dev_scripts/dockerci.sh
|
||||
Reference in New Issue
Block a user