The shared workflow tests on 3.12 and 3.13 by default and runs lowest on 3.12; the template declares requires-python >=3.12 with ruff and mypy on 3.12, and the tool itself needs 3.12. netOrk runs every driver on 3.12 in its own containers. check keeps accepting a 3.10 floor until every driver has moved; part B raises it.
33 lines
707 B
YAML
33 lines
707 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.12", "3.13"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install
|
|
run: |
|
|
python -m venv .venv
|
|
echo "$PWD/.venv/bin" >> "$GITHUB_PATH"
|
|
.venv/bin/pip install -q -e ".[dev]"
|
|
- name: Lint
|
|
run: |
|
|
ruff format --check .
|
|
ruff check .
|
|
- name: Types
|
|
run: mypy napalm_standard
|
|
- name: Tests
|
|
run: pytest -q --tb=short
|