2c4e8fcfda
Lint / Python (flake8) (push) Failing after 20s
Lint / JS (eslint) (push) Successful in 7s
Security / Python Security (bandit) (push) Failing after 22s
Test / Python Tests (pytest) (push) Successful in 30s
Lint / Notify on failure (push) Successful in 2s
Lint / Deploy (push) Has been skipped
- lint.yml: add notify-failure Matrix alert job; add Tag deployed commit step to deploy job with deploy-YYYY.MM.DD-N tagging via Gitea API - test.yml: add pytest-cov for coverage reporting - .coveragerc: omit tests and site-packages from coverage Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
579 B
YAML
25 lines
579 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
pytest:
|
|
name: Python Tests (pytest)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Python and dependencies
|
|
run: |
|
|
apt-get update -qq
|
|
apt-get install -y -qq python3 python3-pip
|
|
pip3 install pytest pytest-cov
|
|
pip3 install -r requirements.txt --quiet
|
|
|
|
- name: Run pytest with coverage
|
|
run: python3 -m pytest tests/ -v --cov=. --cov-report=term-missing --cov-config=.coveragerc
|