Skip to content

remove CI warning

remove CI warning #30

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
# -----------------------------------------------------------------------
# C: warning-clean build + unit tests
# -----------------------------------------------------------------------
c-tests:
name: C build and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build library and examples
working-directory: c
run: make all
- name: Run unit tests
working-directory: c
run: make test
# -----------------------------------------------------------------------
# Python: lint + type-check + unit tests
# -----------------------------------------------------------------------
python-tests:
name: Python lint and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Lint (ruff)
working-directory: python
run: uv run --extra dev ruff check rxnet/ tests/
- name: Type-check (mypy)
working-directory: python
run: uv run --extra dev mypy rxnet/ --ignore-missing-imports
- name: Run unit tests
working-directory: python
run: uv run --extra dev pytest tests/ -v
# -----------------------------------------------------------------------
# C: sanitizer build (ASan + UBSan)
# -----------------------------------------------------------------------
c-sanitizers:
name: C sanitizer run (ASan + UBSan)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and test with sanitizers
working-directory: c
run: |
make clean
make test CFLAGS="-std=c99 -Wall -Wextra -Wpedantic -Iinclude -fsanitize=address,undefined -fno-omit-frame-pointer -g"
env:
ASAN_OPTIONS: detect_leaks=1:abort_on_error=1
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
# -----------------------------------------------------------------------
# Parity: C and Python must produce identical traces
# -----------------------------------------------------------------------
parity:
name: C/Python semantic parity
runs-on: ubuntu-latest
needs: [c-tests, python-tests]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Run parity check
run: bash tests/parity/run_parity.sh