Skip to content
Open
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
37 changes: 19 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Tests

on:
schedule:
- cron: "30 20 * * *" # 7:30pm UTC
workflow_dispatch:
schedule:
- cron: "30 20 * * *" # 7:30pm UTC
workflow_dispatch:
pull_request:
paths:
- "*.cpp"
Expand All @@ -19,18 +19,19 @@ on:
- "*.txt"
- "setup.cfg"
- ".github/workflows/*.yml"
- "CMakeLists.txt"

jobs:
linting:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: ["3.11"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
Expand All @@ -43,36 +44,36 @@ jobs:
run: |
mypy src tests
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/clang-format-action@v4.11.0
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: "11"
check-path: "/src/bindings/"
fallback-style: "Google"
fallback-style: "Google"

build:
runs-on: ${{ matrix.os }}
needs: [linting]
strategy:
fail-fast: false
max-parallel: 12
max-parallel: 12
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13", "3.14"]
os: [ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Build Google DP
- name: Build Google DP
timeout-minutes: 20
run: |
bash build_PyDP.sh
bash build_PyDP.sh

- name: Upgrade pip
run: |
Expand All @@ -85,7 +86,7 @@ jobs:
- name: Get poetry cache dir
id: poetry-cache
run: |
echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT
echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT

- name: poetry cache
uses: actions/cache@v4
Expand All @@ -104,8 +105,8 @@ jobs:
run: |
poetry run python setup.py build bdist_wheel

- name: Build PyDP Linux
if: runner.os == 'Linux'
- name: Build PyDP Linux
if: runner.os == 'Linux'
run: |
poetry run python setup.py build bdist_wheel

Expand Down
4 changes: 2 additions & 2 deletions src/bindings/PyDP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include(FetchContent)
FetchContent_Declare(
google_dp
GIT_REPOSITORY https://github.com/google/differential-privacy.git
GIT_TAG 8c7aac224465468407b4f9e11d3fb5ce90a15d58 # Sep 5, 2025
GIT_TAG 12e32c6156d0b8b8dbeb0f63a9b8b3f87b521352 # May 5, 2026
)

FetchContent_MakeAvailable(google_dp)
Expand All @@ -19,7 +19,7 @@ FetchContent_MakeAvailable(pybind11)
FetchContent_Declare(
abseil-cpp
GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git
GIT_TAG 20250512.1
GIT_TAG 20250814.1
)
FetchContent_MakeAvailable(abseil-cpp)

Expand Down
Loading