Skip to content

Commit 006c46f

Browse files
authored
Create PaddleX_ts_pipeline_Run_Check.yml
1 parent 2600f06 commit 006c46f

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: PaddleX ts pipeline Run Check
2+
run-name: Runs on ${{ github.event_name }}
3+
4+
on:
5+
workflow_dispatch:
6+
workflow_call:
7+
schedule:
8+
- cron: "0 20 * * *"
9+
10+
jobs:
11+
run-check:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-20.04, ubuntu-latest, macos-latest, macos-13, ubuntu-24.04-arm, windows-latest] # x86 和 ARM
17+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
18+
19+
steps:
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Upgrade pip and install setuptools
26+
run: python -m pip install --upgrade pip setuptools
27+
28+
- name: Install dependencies
29+
run: python -m pip install --pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
30+
31+
- name: PaddlePaddle Run Check
32+
run: |
33+
python -c "import paddle; paddle.version.show(); paddle.utils.run_check()"
34+
35+
- name: git clone PaddleX
36+
run: |
37+
git clone https://github.com/PaddlePaddle/PaddleX.git
38+
39+
- name: install ts requirements
40+
run: |
41+
cd PaddleX
42+
pip install -e .[ts]
43+
44+
- name: test ts_forecast
45+
run: |
46+
cd PaddleX
47+
paddlex --pipeline ts_forecast --input https://paddle-model-ecology.bj.bcebos.com/paddlex/ts/demo_ts/ts_fc.csv --device cpu --save_path ./output
48+
49+
- name: test ts_anomaly_detection
50+
run: |
51+
cd PaddleX
52+
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
53+
54+
- name: test ts_classification
55+
run: |
56+
cd PaddleX
57+
paddlex --pipeline ts_classification --input https://paddle-model-ecology.bj.bcebos.com/paddlex/ts/demo_ts/ts_cls.csv --device cpu --save_path ./output
58+

0 commit comments

Comments
 (0)