mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
25 lines
514 B
YAML
25 lines
514 B
YAML
name: Python Linting
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "src/**"
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.8
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install -U pip
|
|
pip install -r requirements.txt
|
|
- name: Flake8 Lint
|
|
run: |
|
|
pip install flake8
|
|
flake8 --max-line-length=120 --show-source
|