Skip to content

Create python venv for macOS #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,20 @@ runs:
steps:
- name: Install action dependencies
shell: bash
run: python3 -m pip install clang-tools==0.6.2 cpp-linter==1.4.8
- name: Install clang-tools binary executables
shell: bash
run: clang-tools -i ${{ inputs.version }} -b
run: |
if [[ "${{runner.os}}" == "macOS" ]];then
python3 -m venv '${{ github.action_path }}/venv'
source '${{ github.action_path }}/venv/bin/activate'
fi
python3 -m pip install -r '${{ github.action_path }}/requirements.txt'
clang-tools -i ${{ inputs.version }} -b
- name: Run cpp-linter
id: cpp-linter
shell: bash
run: |
if [[ "${{runner.os}}" == "macOS" ]];then
source '${{ github.action_path }}/venv/bin/activate'
fi
cpp-linter \
--style="${{ inputs.style }}" \
--extensions=${{ inputs.extensions }} \
Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Install clang-tools binaries (clang-format, clang-tidy)
# For details please see: https://github.com/cpp-linter/clang-tools-pip
clang-tools==0.6.2

# cpp-linter core Python executable package
# For details please see: https://github.com/cpp-linter/cpp-linter
cpp-linter==1.4.8