mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-14 14:05:20 +03:00
The replay tests marked sharkd_present skip gracefully without the binary, but four manager-level tests (cap eviction, in-use protection, single spawn under concurrency, filter-error mapping) run entirely against fakes and died on the acquire-time PATH check instead - install wireshark-common (which ships /usr/bin/sharkd on the Ubuntu runner) so the real-engine tests actually run in CI, and patch the which() check in the fake-session tests so the suite stays green on machines without sharkd.
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: testing
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- 3.1
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- 3.1
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: pip
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install .[ai-features,dev]
|
|
- name: Install sharkd (marker replay engine)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y wireshark-common
|
|
|
|
- name: Lint with flake8
|
|
run: |
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
- name: Test with pytest
|
|
run: |
|
|
python -m pytest -vv
|