Skip to content

WIP: V0.2 dev

WIP: V0.2 dev #53

Workflow file for this run

name: Pull Request Quality Check
on:
pull_request:
types: [opened, synchronize, reopened]
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
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Lint with flake8
run: |
flake8 src/clippy --count --show-source --statistics --max-line-length=120
- name: MyPy
run: |
mypy src/clippy --ignore-missing-imports
- 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 $TMPDIR/build
cd $TMPDIR/build && cmake -DBOOST_ROOT=$BOOST_ROOT .. && make
ls -l $TMPDIR/build/test
BACKEND=$TMPDIR/build/test
echo "BACKEND=$BACKEND" >> $GITHUB_ENV
- name: Pytest
env:
CLIPPY_BACKEND_PATH: ${{ env.BACKEND }}
run: |
echo "backend = $BACKEND"
pytest .
# - name: Pytest
# run: |
# coverage run --source clippy/ -m pytest && coverage report -m --fail-under 99