Skip to content

feat: add monitoring tracer trait and hooks #46

feat: add monitoring tracer trait and hooks

feat: add monitoring tracer trait and hooks #46

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: ['**']
types: [opened, synchronize, reopened, ready_for_review]
jobs:
nix-tests:
name: Testing on Python ${{matrix.python-version}}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10","3.11","3.12","3.13"]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-25.05
extra_nix_config: |
experimental-features = nix-command flakes
- name: Build Rust module and run tests via Nix
run: nix develop --command bash -lc 'just venv ${{matrix.python-version}} dev test'
# rust-tests:
# name: Rust module test on ${{ matrix.os }} (Python ${{ matrix.python-version }})
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# python-version: ["10", "11", "12", "13"]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: 3.${{ matrix.python-version }}
# - uses: astral-sh/setup-uv@v4
# - uses: messense/maturin-action@v1
# with:
# command: build
# args: --interpreter python3.${{ matrix.python-version }} -m crates/codetracer-python-recorder/Cargo.toml --release
# - name: Install and test built wheel with uv (pytest)
# shell: bash
# run: |
# v=${{matrix.python-version}}
# file=(crates/codetracer-python-recorder/target/wheels/*.whl)
# file="${file[0]}"
# uv run -p python3.$v --with "${file}" --with pytest -- \
# python -m pytest crates/codetracer-python-recorder/test tests/test_codetracer_api.py -q