-
Notifications
You must be signed in to change notification settings - Fork 82
35 lines (35 loc) · 1.23 KB
/
gh_actions_macos.yml
File metadata and controls
35 lines (35 loc) · 1.23 KB
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
name: test macos latest
on: [push]
jobs:
build:
runs-on: [macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Add llvm utils clang-format and clang-tidy to path
run: echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
- name: Configure macOS SDK for clang-tidy
run: |
echo "SDKROOT=$(xcrun --show-sdk-path)" >> $GITHUB_ENV
- name: Install 5 hooks, python3, llvm already includes clang-tidy, clang-format
run: brew install uncrustify cppcheck oclint iwyu
- name: Fix OCLint dylib paths
run: .github/scripts/fix-oclint-macos.sh
- name: Install pip dependencies
run: pip3 install --break-system-packages cpplint pytest pre-commit
- name: Install hooks locally
run: pip3 install --break-system-packages .
- name: Get command versions
run: |
clang-format --version
clang-tidy --version
cppcheck --version
cpplint --version
include-what-you-use --version
oclint --version
- name: Get python library versions
run: |
pytest --version
pre-commit --version
- name: Run tests
run: python3 -m pytest -x -vvv