mirror of
https://github.com/apprenticeharper/DeDRM_tools
synced 2024-12-27 09:58:59 +01:00
731eeac087
* Update and rename Python_test.yml to Lint.yaml * Create Format.yaml
26 lines
743 B
YAML
26 lines
743 B
YAML
name: Python code review
|
|
on: [push, pull_request]
|
|
jobs:
|
|
Test:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- name: Set up Python
|
|
uses: actions/setup-python@main
|
|
with:
|
|
python-version: 3.x
|
|
- uses: actions/cache@main
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-lint
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-lint
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install flake8
|
|
- name: Lint with flake8
|
|
run: |
|
|
python -m flake8 . --builtins=_,I --ignore=E501 --count --benchmark --show-source --statistics
|