1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- name: build and test
- on:
- push:
- branches:
- - develop
- paths-ignore:
- - ".github/**"
- - "docs/**"
- - "README.md"
- pull_request:
- branches:
- - develop
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
- jobs:
- build_and_test_cpu:
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [ubuntu-latest, windows-latest]
- python-version: ["3.7", "3.8"]
- steps:
- - uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
- - name: Upgrade pip
- run: python -m pip install pip --upgrade --user
- - name: Install PaddlePaddle
- run: python -m pip install paddlepaddle==2.3.1 -i https://mirror.baidu.com/pypi/simple
- - name: Install PaddleRS
- run: |
- pip install -r requirements.txt
- pip install -e .
- - name: Install pre-commit hooks
- run: |
- pip install pre-commit
- pre-commit install
- - name: Lint
- run: pre-commit run --all-files
- - name: Run unittests
- run: |
- cd tests
- bash check_coverage.sh
- shell: bash
- build_and_test_cuda102:
- runs-on: ubuntu-latest
- container:
- image: registry.baidubce.com/paddlepaddle/paddle:2.3.1-gpu-cuda10.2-cudnn7
- steps:
- - uses: actions/checkout@v3
- - name: Upgrade pip
- run: python -m pip install pip --upgrade --user
- - name: Install PaddleRS
- run: |
- pip install -r requirements.txt
- pip install -e .
- - name: Install pre-commit hooks
- run: |
- pip install pre-commit
- pre-commit install
- - name: Lint
- run: pre-commit run --all-files
- - name: Run unittests
- run: |
- cd tests
- bash check_coverage.sh
- shell: bash
|