update README #1
Workflow file for this run
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: Pull Request Quality Check | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest git+https://github.com/llnl/clippy@master | |
- name: Install Boost | |
uses: MarkusJx/[email protected] | |
id: install-boost | |
with: | |
# REQUIRED: Specify the required boost version | |
# A list of supported versions can be found here: | |
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json | |
boost_version: 1.83.0 | |
# OPTIONAL: Specify a platform version | |
# platform_version: 18.04 | |
# OPTIONAL: Specify a custom install location | |
boost_install_dir: /home/runner/work/boost | |
# OPTIONAL: Specify a toolset | |
toolset: gcc | |
# OPTIONAL: Specify an architecture | |
# arch: x86 | |
- name: Build backend | |
id: build-backend | |
env: | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
run: | | |
echo BOOST_ROOT is $BOOST_ROOT /end/ | |
sudo apt install doxygen | |
# TMPDIR=$(mktemp -d) | |
# git clone https://github.com/LLNL/clippy-cpp --branch $GITHUB_HEAD_REF $TMPDIR | |
mkdir -p build | |
cd build && cmake -DBOOST_ROOT=$BOOST_ROOT .. && make && cd .. | |
ls -l build/test | |
BACKEND=$PWD/build/test | |
echo "BACKEND=$BACKEND" >> $GITHUB_ENV | |
- name: Run Python test framework | |
env: | |
CLIPPY_BACKEND_PATH: ${{ env.BACKEND }} | |
run: | | |
echo "backend = $BACKEND" | |
pytest . |