Skip to content

Merge remote-tracking branch 'origin/master' into Netbox_device_exist… #14

Merge remote-tracking branch 'origin/master' into Netbox_device_exist…

Merge remote-tracking branch 'origin/master' into Netbox_device_exist… #14

name: DNS Entry Checker Unittest
on:
push:
branches:
- master
pull_request:
paths:
- "jsm_metric_collection/**"
- ".github/workflows/jsm_metric_collection.yaml"
jobs:
test_with_unit_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r jsm_metric_collection/requirements.txt
- name: Test with unittest
run: |
cd jsm_metric_collection
python3 -m unittest discover -s ./test -p "test_*.py"