Skip to content

#24 Use PyProject.toml #271

#24 Use PyProject.toml

#24 Use PyProject.toml #271

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}}/cmake_build --config ${{env.BUILD_TYPE}}
- name: C++ tests
working-directory: ${{github.workspace}}/cmake_build
run: ctest -C ${{env.BUILD_TYPE}} --output-junit ../testresults/cpptestresults.xml
- name: Python tests
run: pytest tests/python -v --junitxml=testresults/pytestresults.xml
- name: Install LRPC Python package
run: pip install .
- name: Run lotusrpc generator
run: lrpcg --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"