mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-12 21:45:41 +03:00
52 lines
1.0 KiB
YAML
52 lines
1.0 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.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: Cache APT packages
|
|
uses: actions/cache@v6
|
|
with:
|
|
path: /var/cache/apt/archives
|
|
key: ${{ runner.os }}-apt-${{ hashFiles('**/apt-packages.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-apt-packages
|
|
|
|
- name: Install sharkd (marker replay engine)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y wireshark-common
|
|
|
|
- name: Run all checks
|
|
run: |
|
|
just test
|