Skip to content

Commit

Permalink
update python3 path for pip
Browse files Browse the repository at this point in the history
little more testing
  • Loading branch information
claywar committed May 16, 2024
1 parent 7e2f1fb commit 96b62a4
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common cppcheck luajit-5.1-dev luarocks mariadb-server-core mariadb-server mariadb-client libmariadb-dev-compat binutils-dev
pip install --break-system-packages -r tools/requirements.txt
sudo apt-get install -y software-properties-common cppcheck luajit-5.1-dev luarocks mariadb-server-core mariadb-server mariadb-client libmariadb-dev-compat binutils-dev clang-format
mkdir .venv
python3 -m venv .venv
source .venv/bin/activate
which python
pip install -r tools/requirements.txt
luarocks install luacheck --local
npm install -g diff-so-fancy
- id: changed-files
Expand Down Expand Up @@ -88,15 +95,15 @@ jobs:
exit 1
fi
exit 0
- name: CPP Formatting Checks (clang-format-15)
- name: CPP Formatting Checks (clang-format-18)
if: always()
run: |
clang-format-15 -version
clang-format-18 -version
touch cpp_formatting_checks.txt
for changed_file in ${{ steps.changed-files.outputs.all }}; do
if [[ -f $changed_file ]]; then
if [[ $changed_file == *.cpp || $changed_file == *.h ]]; then
clang-format-15 -style=file -i ${changed_file}
clang-format-18 -style=file -i ${changed_file}
fi
fi
done
Expand Down

0 comments on commit 96b62a4

Please sign in to comment.