Fixed test layout and added pipeline step to actually run tests

This commit is contained in:
TheNetworkGuy
2025-04-28 10:47:52 +02:00
parent 7383583c43
commit cb0500d0c0
2 changed files with 48 additions and 28 deletions

22
.github/workflows/run_tests.yml vendored Normal file
View 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