Skip to content

Commit 15a07e9

Browse files
committed
ci: add reusable workflow
1 parent 607af54 commit 15a07e9

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/lint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- ".gitignore"
7+
- "README.md"
8+
- "docs/**"
9+
10+
jobs:
11+
build:
12+
uses: unict-dmi/reusable-workflows/.github/workflows/python-lint.yml@main
13+
with:
14+
repo_ref: ${{ github.repository }}

.github/workflows/telegram-bot.yml renamed to .github/workflows/test.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,8 @@ jobs:
2929
- name: Install dependencies for requirements and testing
3030
run: |
3131
python -m pip install --upgrade pip
32-
pip install flake8
3332
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3433
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
35-
- name: Lint with flake8
36-
run: |
37-
# stop the build if there are Python syntax errors or undefined names
38-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41-
- name: Lint with pylint
42-
run: |
43-
pylint main.py setup.py module
4434
# - name: Setup enviroment
4535
# run: |
4636
# mv config/settings.yaml.dist config/settings.yaml

0 commit comments

Comments
 (0)