mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-27 14:36:57 +00:00
34 lines
599 B
YAML
34 lines
599 B
YAML
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 .
|