Save changes
This commit is contained in:
@@ -7,6 +7,28 @@ on:
|
||||
branches: [ main, master ]
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install quality tools
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install xenon
|
||||
|
||||
- name: Check Python files encoding (no UTF-8 BOM)
|
||||
run: python scripts/check_no_bom.py mjr_am_backend mjr_am_shared tests __init__.py scripts
|
||||
|
||||
- name: Complexity gate (stage A)
|
||||
run: python -m xenon -b F -m D -a C mjr_am_backend mjr_am_shared tests __init__.py
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user