chore: add github actions
All checks were successful
Code Quality / lint (push) Successful in 12s
Run tests / test (push) Successful in 12s

This commit is contained in:
2025-09-09 13:43:30 +02:00
parent 126f9c1efb
commit d5303c5594
2 changed files with 50 additions and 0 deletions

24
.github/workflows/code-quality.yaml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Code Quality
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Run lint
run: |
pylint --errors-only $(git ls-files '*.py')

26
.github/workflows/run-tests.yaml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Run tests
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pip install pytest
pytest