Skip to content

chore(deps): pin anolishq/.github action to afc2d26 #101

chore(deps): pin anolishq/.github action to afc2d26

chore(deps): pin anolishq/.github action to afc2d26 #101

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- '**/*.md'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
concurrency:
group: fluxgraph-ci-${{ github.ref }}
cancel-in-progress: true
env:
VCPKG_COMMIT: "66c0373dc7fca549e5803087b9487edfe3aca0a1"
jobs:
python-lint:
name: Python Linting (ruff)
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: Install dependencies
run: uv sync --locked --extra dev
- name: Run ruff checks
run: |
uv run ruff check tests --output-format=github
uv run ruff format --check tests
python-typecheck:
name: Python Type Checking (mypy)
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: Install dependencies
run: uv sync --locked --extra dev
- name: Run mypy
run: uv run mypy tests
linux-matrix:
name: Linux ${{ matrix.lane }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- lane: core-only
preset: ci-linux-release
grpc_integration: false
- lane: diagram-dot
preset: ci-linux-release-diagram
grpc_integration: false
- lane: json
preset: ci-linux-release-json
grpc_integration: false
- lane: yaml
preset: ci-linux-release-yaml
grpc_integration: false
- lane: server-enabled
preset: ci-linux-release-server
grpc_integration: true
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build g++
- name: Setup vcpkg
uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
doNotCache: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
if: ${{ matrix.grpc_integration }}
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
if: ${{ matrix.grpc_integration }}
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: Install Python integration deps
if: ${{ matrix.grpc_integration }}
run: uv sync --locked --extra dev
- name: Configure
run: |
EXTRA_ARGS=""
if [ "${{ matrix.grpc_integration }}" = "true" ]; then
EXTRA_ARGS="-DPython3_EXECUTABLE=$(pwd)/.venv/bin/python"
fi
cmake --preset "${{ matrix.preset }}" $EXTRA_ARGS
- name: Build
run: cmake --build --preset "${{ matrix.preset }}" --parallel
- name: Generate Python Protobuf Bindings
if: ${{ matrix.grpc_integration }}
run: |
bash ./scripts/generate_proto_python.sh build-server/python
- name: Run tests
run: ctest --preset "${{ matrix.preset }}"
strict-dimensional-validation:
name: Strict dimensional validation
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build g++ python3
- name: Setup vcpkg
uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
doNotCache: false
- name: Run strict dimensional validation
id: dimensional
shell: bash
run: |
set -euo pipefail
OUT_DIR="artifacts/dimensional-validation/${{ github.run_id }}_${{ github.run_attempt }}_ci-linux-release"
python3 scripts/run_dimensional_validation.py \
--preset ci-linux-release \
--output-dir "$OUT_DIR" \
--enforce
echo "out_dir=$OUT_DIR" >> "$GITHUB_OUTPUT"
- name: Upload strict-dimensional artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: strict-dimensional-validation-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ steps.dimensional.outputs.out_dir }}
if-no-files-found: error
windows-core:
name: Windows core-only
runs-on: windows-2025
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup vcpkg
uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
doNotCache: false
- name: Configure
run: cmake --preset ci-windows-release
- name: Build
run: cmake --build --preset ci-windows-release --parallel
- name: Run C++ tests
run: ctest --preset ci-windows-release
windows-diagram:
name: Windows diagram-dot
runs-on: windows-2025
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup vcpkg
uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
doNotCache: false
- name: Configure
run: cmake --preset ci-windows-release-diagram
- name: Build
run: cmake --build --preset ci-windows-release-diagram --parallel
- name: Run C++ tests
run: ctest --preset ci-windows-release-diagram
diagram-render-smoke:
name: Diagram Render Smoke
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build g++ graphviz
- name: Setup vcpkg
uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
doNotCache: false
- name: Configure diagram preset
run: cmake --preset ci-linux-release-diagram
- name: Build diagram tool
run: cmake --build --preset ci-linux-release-diagram --target fluxgraph_diagram --parallel
- name: Render SVG smoke output
run: |
set -euo pipefail
BIN="./build/ci-linux-release-diagram/tools/fluxgraph-diagram"
OUT="$RUNNER_TEMP/graph-smoke.svg"
"$BIN" --in ./examples/03_json_graph/graph.json --out "$OUT" --format svg
test -s "$OUT"
version-sync:
uses: anolishq/.github/.github/workflows/version-sync.yml@15446ff3fbd9ec1d4c341485731356de026d2f67 # main
with:
python-version: '3.12'
working-directory: '.'