-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (51 loc) · 1.79 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 .