mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
Upgrade Python setup action and dependencies
Updated Python setup action to version 5 and specified Python version 3.11. Also modified dependencies installation to include pyyaml.
This commit is contained in:
9
.github/workflows/code_checks.yml
vendored
9
.github/workflows/code_checks.yml
vendored
@@ -46,9 +46,9 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install linting tools
|
||||
run: |
|
||||
@@ -94,15 +94,16 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install pytest
|
||||
pip install pytest pyyaml
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
echo "🧪 Running unit tests..."
|
||||
export PYTHONPATH=$PYTHONPATH:./server
|
||||
pytest -m "not (docker or compose or feature_complete)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user