mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-12-21 04:42:19 -06:00
Fixed test layout and added pipeline step to actually run tests
This commit is contained in:
22
.github/workflows/run_tests.yml
vendored
Normal file
22
.github/workflows/run_tests.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
name: Pytest code testing
|
||||
|
||||
on:
|
||||
workflow_call
|
||||
|
||||
jobs:
|
||||
test_code:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest pytest-mock
|
||||
pip install -r requirements.txt
|
||||
- name: Analysing the code with pylint
|
||||
run: |
|
||||
cp config.py.example config.py
|
||||
pytest tests
|
||||
Reference in New Issue
Block a user