From 50b21418525063fd5f40334e49d0a128e72d28d8 Mon Sep 17 00:00:00 2001 From: Ernesto Casablanca Date: Tue, 31 Mar 2026 16:41:51 +0100 Subject: [PATCH 1/2] ci: add test pylucid on pushes on main --- .github/workflows/pylucid-test.yml | 108 +++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 .github/workflows/pylucid-test.yml diff --git a/.github/workflows/pylucid-test.yml b/.github/workflows/pylucid-test.yml new file mode 100644 index 00000000..0a55b904 --- /dev/null +++ b/.github/workflows/pylucid-test.yml @@ -0,0 +1,108 @@ +name: pylucid test CI + +on: + workflow_dispatch: + push: + branches: [main] + paths: + - "lucid/**" + - "bindings/pylucid/**" + - "test/**" + pull_request: + branches: [main] + paths: + - "lucid/**" + - "bindings/pylucid/**" + - "test/**" + +env: + LUCID_FLAGS: --enable_gurobi_build=False --enable_matplotlib_build=False + +jobs: + test: + runs-on: ${{ matrix.os }} + if: false # TODO: enable this again + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + python_version: + - "3.9" + - "3.13" + # - "3.14" Need to upgrade gurobi to 13 first + + steps: + - uses: actions/checkout@v6 + - uses: ./.github/actions/bazel-cache + if: matrix.os != 'windows-latest' + - uses: ./.github/actions/frontend-setup + if: matrix.os == 'windows-latest' + - name: Install openmp on macOS + if: matrix.os == 'macos-latest' + run: | + brew install llvm libomp + export CC=/usr/local/opt/llvm/bin/clang + export CXX=/usr/local/opt/llvm/bin/clang++ + - name: Run tests + run: | + bazel test --config=py --python_version=${{ matrix.python_version }} ${{ env.LUCID_FLAGS }} //tests/bindings/pylucid/... + + build: + runs-on: ${{ matrix.os }} + # needs: test # TODO: enable this again + strategy: + fail-fast: false + matrix: + os: + - ubuntu-22.04 + - macos-latest + - windows-latest + python_version: + - "3.9" + - "3.13" + # - "3.14" Need to upgrade gurobi to 13 first + + steps: + - uses: actions/checkout@v6 + - uses: ./.github/actions/gurobi-lib + id: gurobi-lib + with: + os: ${{ matrix.os }} + version: "12.0.0" + - uses: ./.github/actions/bazel-cache + - uses: ./.github/actions/frontend-setup + if: matrix.os == 'windows-latest' + + # - name: Install openmp on macOS + # if: matrix.os == 'macos-latest' + # run: | + # brew install llvm libomp + # export CC=/usr/local/opt/llvm/bin/clang + # export CXX=/usr/local/opt/llvm/bin/clang++ + + - name: Install python + uses: actions/setup-python@v6 + with: + python-version: "${{ matrix.python_version }}" + cache: "pip" + - name: Upgrade pip + run: python -m pip install --upgrade pip + + - name: Install pip dependencies + run: | + python -m pip install --upgrade pip + pip install build setuptools wheel twine + + - name: Build a binary wheel and a source tarball + run: python3 -m build + env: + GUROBI_HOME: ${{ steps.gurobi-lib.outputs.gurobi-home }} + LD_LIBRARY_PATH: ${{ steps.gurobi-lib.outputs.gurobi-home }}/lib + + - name: Store the distribution packages + uses: actions/upload-artifact@v7 + with: + name: python-package-${{ matrix.os }}-${{ matrix.python_version }} + path: dist/ From 8120731f542af46e08034dd3d20423d633c1cae8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 15:51:49 +0000 Subject: [PATCH 2/2] build(deps): bump tornado from 6.4.2 to 6.5.1 in /tools Bumps [tornado](https://github.com/tornadoweb/tornado) from 6.4.2 to 6.5.1. - [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst) - [Commits](https://github.com/tornadoweb/tornado/compare/v6.4.2...v6.5.1) --- updated-dependencies: - dependency-name: tornado dependency-version: 6.5.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- tools/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/requirements.txt b/tools/requirements.txt index 15cda3d3..3742b18c 100644 --- a/tools/requirements.txt +++ b/tools/requirements.txt @@ -17,7 +17,7 @@ pillow<=11.2.1 pyparsing<=3.2.3 python-dateutil<=2.9.0.post0 six<=1.17.0 -tornado<=6.5.3 +tornado<=6.5.5 scikit-learn<=1.6.1 joblib<=1.5.3 scipy<=1.15.2