Skip to content
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
27 changes: 27 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,32 @@ on:
workflow_call:

jobs:
pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
gcc-14 g++-14 ninja-build python3-pip clang-format-16
python3 -m pip install -r requirements.txt
- name: Run pre-commit checks
run: |
# For push events, compare with previous commit
if [ "${{ github.event_name }}" = "push" ]; then
pre-commit run --from-ref HEAD~1 --to-ref HEAD
else
# For PRs, compare with base branch
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
pre-commit run --from-ref ${{ github.base_ref }} --to-ref HEAD
fi
gcc-build:
needs:
- pre-commit
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -110,6 +135,8 @@ jobs:
env:
PPC_NUM_PROC: 1
clang-build:
needs:
- pre-commit
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
numpy==2.2.3
XlsxWriter==3.2.5
PyYAML==6.0.2
pre-commit==3.4.0
Loading