diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f5ea4a5..105878e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -7,31 +7,6 @@ on: jobs: - build: - name: Build - runs-on: ubuntu-20.04 - permissions: - contents: write - - steps: - - name: Install prerequisites - run: | - sudo apt update - sudo apt install -y build-essential curl \ - cmake clang libclang-dev llvm llvm-dev \ - qt5-default libopencv-dev \ - python3-dev python3-numpy python3-opencv - - - name: Checkout code - uses: actions/checkout@v2 - - - uses: webfactory/ssh-agent@v0.7.0 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - - name: Build project - run: cargo build --verbose --jobs $(nproc) - flake8: name: Code style runs-on: ubuntu-20.04 @@ -86,3 +61,32 @@ jobs: - name: Analysing the code with pylint run: | pylint --rcfile=.pylintrc --output=pylint.log --jobs 10 ./python/pycvl + + build: + name: Build + runs-on: ubuntu-20.04 + needs: [ pylint ] + permissions: + contents: write + + steps: + - name: Install prerequisites + run: | + sudo apt update + sudo apt install -y build-essential curl \ + cmake clang libclang-dev llvm llvm-dev \ + qt5-default libopencv-dev \ + python3-dev python3-numpy python3-opencv + + - name: Checkout code + uses: actions/checkout@v2 + + - uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - uses: PyO3/maturin-action@v1 + with: + command: build + args: --release + rust-toolchain: nightly diff --git a/README.md b/README.md index fc28a27..4213cff 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ ![GitHub version](https://img.shields.io/badge/version-v0.0.1-green?style=plastic&labelColor=dark) +[![Pull Request Checking](https://github.com/breadrock1/PyCvl/actions/workflows/pull-request.yml/badge.svg)](https://github.com/breadrock1/PyCvl/actions/workflows/pull-request.yml) + ### Program Description The `PyCvl` project is a `Python` bindings based on `CVLCore` private repository which provides ability to use core `APIs` for continuous analysis of a video stream including generating `vibro-image`.