Skip to content

Runs on schedule

Runs on schedule #20

name: PaddleX video 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 video requirements
run: |
cd PaddleX
pip install -e .[video]
- name: test video_classification
run: |
cd PaddleX
paddlex --pipeline video_classification --input https://paddle-model-ecology.bj.bcebos.com/paddlex/videos/demo_video/general_video_classification_001.mp4 --topk 5 --save_path ./output --device cpu
- name: test video_detection
run: |
cd PaddleX
paddlex --pipeline video_detection --input https://paddle-model-ecology.bj.bcebos.com/paddlex/videos/demo_video/HorseRiding.avi --device cpu --save_path output