* Add support for NetBox 4.6 * Test NetBox v4.6.3 and Python 3.14 Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com> Co-authored-by: Artem Kotik <artem.i.kotik@ringcentral.com>
41 lines
857 B
YAML
41 lines
857 B
YAML
---
|
|
name: Python
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- python-version: 3.11
|
|
- python-version: 3.12
|
|
- python-version: 3.13
|
|
- python-version: 3.14
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install ci tools
|
|
run: pip install .[ci]
|
|
|
|
- name: Run ruff lint
|
|
run: ruff check netbox_slm
|
|
|
|
- name: Run ruff format
|
|
run: ruff format --check netbox_slm
|