mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2026-03-21 20:18:38 -06:00
28 lines
686 B
YAML
28 lines
686 B
YAML
---
|
|
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.12", "3.13"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
run: uv python install ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: uv sync --dev
|
|
- name: Copy example config
|
|
run: cp config.py.example config.py
|
|
- name: Run tests with coverage
|
|
run: uv run pytest tests --cov --cov-report=term --cov-fail-under=70
|