Skip to content

[codex] Merge per-VM VM sync into v0.0.10 (#311) #662

[codex] Merge per-VM VM sync into v0.0.10 (#311)

[codex] Merge per-VM VM sync into v0.0.10 (#311) #662

Workflow file for this run

name: CI
on:
push:
branches: ['**']
pull_request:
branches: ['**']
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: "pip"
- name: Install ruff
run: pip install ruff
- name: Run ruff (lint + format check)
run: |
ruff check .
ruff format --check .
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[test]"
- name: Compile package
run: python -m compileall netbox_proxbox tests
test:
runs-on: ubuntu-latest
needs: [lint, compile]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[test]"
- name: Run mocked test suite
run: pytest --cov=netbox_proxbox --cov-report=term-missing --cov-report=xml tests
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: netbox-proxbox-coverage
path: coverage.xml