Skip to content

LRPC-9 Use PyLint

LRPC-9 Use PyLint #234

Workflow file for this run

name: CMake
on:
push:
branches: ["*"]
pull_request:
branches: ["main"]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Checkout
uses: actions/[email protected]
with:
submodules: "true"
- name: Install Python requirements
run: |
pip install -r requirements/package.txt
pip install -r requirements/dev.txt
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: C++ tests
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-junit ../testresults/cpptestresults.xml
- name: Python tests
run: pytest package/tests -v --junitxml=testresults/pytestresults.xml
- name: Install LRPC Python package
working-directory: package
run: pip install .
- name: Run lotusrpc
run: lotusrpc --help
- name: Run LRPC client CLI
run: lrpcc --help
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
with:
junit_files: "testresults/*.xml"