mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-27 22:30:11 +03:00
ci: run just test
This commit is contained in:
parent
8dfe05df3d
commit
2ac637c662
13
.github/workflows/testing.yml
vendored
13
.github/workflows/testing.yml
vendored
@ -21,26 +21,23 @@ jobs:
|
||||
|
||||
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
|
||||
- name: Run all checks
|
||||
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
|
||||
just test
|
||||
|
||||
2
justfile
2
justfile
@ -20,6 +20,8 @@ format:
|
||||
lint:
|
||||
python -m ruff check --exit-non-zero-on-fix
|
||||
python -m ruff format --check --diff
|
||||
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
|
||||
[group('dev')]
|
||||
type-check:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user