mirror of
https://github.com/QualityInUse/lab-metrics-maksktl.git
synced 2026-08-05 13:45:27 +03:00
lab metrics
This commit is contained in:
@@ -1,3 +1,38 @@
|
||||
name: lab-metrics
|
||||
|
||||
# add your pipline description below
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Run image
|
||||
uses: abatilo/actions-poetry@v2
|
||||
with:
|
||||
poetry-version: '1.7.1'
|
||||
- name: Install dependencies
|
||||
run: poetry install; poetry add flake8
|
||||
- name: Run flake8
|
||||
run: poetry run flake8
|
||||
complexity-check:
|
||||
name: Complexity
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Run image
|
||||
uses: abatilo/actions-poetry@v2
|
||||
with:
|
||||
poetry-version: '1.7.1'
|
||||
- name: Install dependencies
|
||||
run: poetry install; poetry add flake8
|
||||
- name: Run flake8 complexity
|
||||
run: poetry run flake8 --max-complexity 10
|
||||
Reference in New Issue
Block a user