This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
fallback when function has error handling (#412) #942
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: UnitTest | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
Test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
runs-on: ${{ matrix.os }} | |
name: python ${{ matrix.python-version }} unittests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html | |
pip install -e ".[dev]" | |
- name: Run unit tests | |
working-directory: ./tests/ | |
run: | | |
bash run_all.sh | |
- name: Run examples | |
working-directory: ./examples/ | |
run: | | |
bash run_all.sh | |
- name: Run xdoctest | |
working-directory: ./ | |
run: | | |
xdoctest sot |