Skip to content

Commit d98b248

Browse files
committed
Update CI workflow and .gitignore for testing
Adds steps to the documentation workflow for installing the package in editable mode and debugging Python imports. Also updates .gitignore to exclude test_plugin_plugin.py.
1 parent fb9fc38 commit d98b248

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: actions/checkout@v4
2929
with:
3030
path: ${{ github.workspace }}
31+
3132
- name: Set up Python
3233
uses: actions/setup-python@v4
3334
with:
@@ -53,9 +54,18 @@ jobs:
5354
- name: Install dependencies
5455
run: |
5556
poetry install
57+
working-directory: ${{ github.workspace }}
58+
59+
- name: Install package in editable mode
60+
run: |
5661
poetry run pip install -e .
5762
working-directory: ${{ github.workspace }}
5863

64+
- name: Debug Python import
65+
run: |
66+
poetry run python -c "from nginx_security_monitor.config_manager import ConfigManager; print(ConfigManager)"
67+
working-directory: ${{ github.workspace }}
68+
5969
- name: Run tests
6070
run: |
6171
poetry run pytest --disable-warnings

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ htmlcov/
1111

1212
# Keys and sensitive data
1313
keys/
14+
test_plugin_plugin.py
1415

1516
# Backup files
1617
*.backup

0 commit comments

Comments
 (0)