Skip to content

Runs on schedule

Runs on schedule #56

name: PaddleX ts pipeline Run Check
run-name: Runs on ${{ github.event_name }}
on:
workflow_dispatch:
workflow_call:
schedule:
- cron: "0 20 * * *"
jobs:
run-check:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-latest, macos-latest, macos-13, ubuntu-24.04-arm, windows-latest] # x86 和 ARM
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip and install setuptools
run: python -m pip install --upgrade pip setuptools
- name: Install dependencies
run: python -m pip install --pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
- name: PaddlePaddle Run Check
run: |
python -c "import paddle; paddle.version.show(); paddle.utils.run_check()"
- name: git clone PaddleX
run: |
git clone https://github.com/PaddlePaddle/PaddleX.git
- name: install ts requirements
run: |
cd PaddleX
pip install -e .[ts]
- name: test ts_forecast
run: |
cd PaddleX
paddlex --pipeline ts_forecast --input https://paddle-model-ecology.bj.bcebos.com/paddlex/ts/demo_ts/ts_fc.csv --device cpu --save_path ./output
- name: test ts_anomaly_detection
run: |
cd PaddleX
paddlex --pipeline ts_anomaly_detection --input https://paddle-model-ecology.bj.bcebos.com/paddlex/ts/demo_ts/ts_ad.csv --device cpu --save_path ./output
- name: test ts_classification
run: |
cd PaddleX
paddlex --pipeline ts_classification --input https://paddle-model-ecology.bj.bcebos.com/paddlex/ts/demo_ts/ts_cls.csv --device cpu --save_path ./output