Add GitHub CI workflow

This commit is contained in:
Codex 2025-06-06 04:39:10 +00:00 committed by Slipstream
parent 9521c12e56
commit cea7c2926b
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

30
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: CI
on:
push:
branches: [ "master", "work" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pylint
- name: Lint with pylint
run: |
pylint $(git ls-files '*.py')
- name: Compile all Python files
run: |
python -m py_compile $(git ls-files '*.py')
- name: Run tests
run: |
pytest -q