Merge pull request #3 from yyyyyt123/feature/tracing #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - feature/** | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install lint dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev,agent]" | |
| - name: Ruff (lint) | |
| run: ruff check netopsbench/ tests/ | |
| - name: Black (format check) | |
| run: black --check netopsbench/ tests/ | |
| - name: Mypy (type check) | |
| run: mypy --ignore-missing-imports | |
| pytest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev,agent]" | |
| - name: Generate benchmark assets (xs scale) | |
| run: netopsbench benchmark prepare --scales xs | |
| - name: Run regression suite (no real-environment tests) | |
| run: | | |
| pytest -q -m "not real" tests/ \ | |
| --cov=netopsbench --cov-fail-under=50 |