Skip to content

Commit

Permalink
Update CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps committed Sep 9, 2024
1 parent e85b6a0 commit 487c4f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/configuration.testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,19 @@
}

PLUGINS = [
'netbox_secretstore',
'netbox_config_backup',
]

PLUGINS_MODULES = {
'netbox_config_backup': {
'repository': 'c:\\Development\\backuprepotest\\',
'repository': '/tmp/repository/',
'committer': 'Test Committer <test@testgit.com>',
'author': 'Test Committer <test@testgit.com>',
'frequency': 3600,
}
}

REDIS = {
'tasks': {
'HOST': 'localhost',
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ jobs:
- name: Install dependencies & set up configuration
run: |
python -m pip install --upgrade pip
pip install -r netbox/requirements.txt
pip install -r netbox/ requirements.txt
pip install pycodestyle coverage tblib
pip install -e netbox-config-backup
cp -f netbox-config-backup/.github/configuration.testing.py netbox/netbox/netbox/
ls -la netbox/netbox/netbox/
- name: Run tests
run: coverage run --source="netbox-config-backup/netbox_config_backup" netbox/netbox/manage.py test netbox-config-backup/netbox_config_backup --parallel
Expand Down

0 comments on commit 487c4f5

Please sign in to comment.