refactor: unify Telegram delivery and add quality checks
This commit is contained in:
29
.github/workflows/quality.yml
vendored
Normal file
29
.github/workflows/quality.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: quality
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
- name: Install test dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements-common.txt -r requirements-dev.txt
|
||||
- name: Lint
|
||||
run: python -m ruff check .
|
||||
- name: Test with coverage
|
||||
run: |
|
||||
python -m coverage run -m unittest discover -v
|
||||
python -m coverage report
|
||||
Reference in New Issue
Block a user