You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
913 B
35 lines
913 B
2 years ago
|
name: Python Linting
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- master
|
||
|
workflow_dispatch:
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Set up Python
|
||
|
uses: actions/setup-python@v4
|
||
|
with:
|
||
|
python-version: '3.10'
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install flake8
|
||
|
pip install pylint
|
||
|
- name: Lint exodus.py
|
||
|
run: |
|
||
|
flake8 --ignore E501,W503 packages/seacas/scripts/exodus3.in.py
|
||
|
- name: Lint exomerge.py
|
||
|
if: success() || failure()
|
||
|
run: |
|
||
|
flake8 --ignore E501,W503,W504 packages/seacas/scripts/exomerge3.py
|
||
|
- name: Lint exodus tests
|
||
|
if: success() || failure()
|
||
|
run: |
|
||
|
flake8 --ignore E501,E402,W503,W605 packages/seacas/scripts/tests
|