mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-27 06:26:57 +00:00
feat: big refactor
This commit is contained in:
33
.github/workflows/lint.yml
vendored
33
.github/workflows/lint.yml
vendored
@@ -1,33 +0,0 @@
|
||||
name: Lint
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
PIP_ROOT_USER_ACTION: "ignore"
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint Python code
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Install pip
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3-pip
|
||||
|
||||
- name: Upgrade pip
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
pip --version
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install flake8
|
||||
|
||||
- name: Run flake8
|
||||
run: |
|
||||
flake8 .
|
||||
Reference in New Issue
Block a user