Skip to content

Bump jupyterlab from 4.5.7 to 4.5.9 #647

Bump jupyterlab from 4.5.7 to 4.5.9

Bump jupyterlab from 4.5.7 to 4.5.9 #647

Workflow file for this run

# Copyright 2025 The PECOS Developers
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
name: Go test
permissions:
contents: read
env:
TRIGGER_ON_PR_PUSH: true # Set to true to enable triggers on PR pushes
RUSTFLAGS: -C debuginfo=0
RUST_BACKTRACE: 1
on:
push:
branches: [ "main", "master", "development", "dev" ]
pull_request:
branches: [ "main", "master", "development", "dev" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
go-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2022, macOS-latest]
go-version: ["stable"] # Latest stable (experimental bindings)
steps:
- name: Harden the runner (egress audit)
if: runner.os == 'Linux'
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: ${{ matrix.go-version }}
- name: Set up Rust
run: rustup show
- name: Cache Rust
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
with:
cache-bin: false
prefix-key: v1-rust-no-bin
save-if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'development' || github.ref_name == 'dev') }}
workspaces: go/pecos-go-ffi
- name: Bootstrap MSVC for the Cargo build path (Windows)
if: runner.os == 'Windows'
shell: pwsh
# Single mechanism: writes linker + LIB/INCLUDE into .cargo/config.toml,
# which the `cargo build` below (run from go/pecos-go-ffi) picks up via
# the parent-dir config search -- same as a local Windows build.
run: ./scripts/win-msvc-bootstrap.ps1
- name: Build Rust FFI library (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
cd go/pecos-go-ffi
cargo build --locked --release
- name: Build Rust FFI library (Unix)
if: runner.os != 'Windows'
shell: bash
run: |
# On macOS, prevent Homebrew library paths from being used during linking
if [[ "${{ runner.os }}" == "macOS" ]]; then
# CRITICAL: Prevent Homebrew library paths from being used during linking
# This fixes the "@rpath/libunwind.1.dylib" runtime error on macOS
# Reference: https://github.com/rust-lang/rust/issues/135372
unset LIBRARY_PATH
unset LD_LIBRARY_PATH
unset DYLD_LIBRARY_PATH
unset DYLD_FALLBACK_LIBRARY_PATH
unset PKG_CONFIG_PATH
export LIBRARY_PATH=/usr/lib
echo "RUSTFLAGS: $RUSTFLAGS"
fi
cd go/pecos-go-ffi
cargo build --locked --release
- name: Run Go tests (Unix)
if: runner.os != 'Windows'
run: |
cd go/pecos
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{ github.workspace }}/target/release \
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${{ github.workspace }}/target/release \
go test -v
- name: Run Go tests (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$env:PATH = "${{ github.workspace }}\target\release;$env:PATH"
cd go/pecos
go test -v
- name: Check Go formatting
run: |
cd go/pecos
if [ -n "$(gofmt -l .)" ]; then
echo "Formatting issues found:"
gofmt -l .
exit 1
fi
echo "All Go code is properly formatted."
- name: Run Go vet
run: |
cd go/pecos
go vet ./...