Skip to content
Snippets Groups Projects
python.yml 734 B
Newer Older
name: python

on: [push, pull_request]

jobs:
  python-lint:
Marko Petric's avatar
Marko Petric committed
    runs-on: ubuntu-latest
    strategy:
      matrix:
        LCG: ["LCG_99/x86_64-centos7-gcc10-opt"]
    steps:
    - uses: actions/checkout@v2
Marko Petric's avatar
Marko Petric committed
    - uses: cvmfs-contrib/github-action-cvmfs@v2
    - uses: aidasoft/run-lcg-view@v1
      with:
        release-platform: ${{ matrix.LCG }}
        run: |
          echo "RUNNING PYLINT PY3K CHECK"
          find . -name "*.py" -and -not -name 'ddsix.py' -exec pylint --rcfile=.github/scripts/DD4hep.pylint.py3k.rc --py3k --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" {} +
          echo ""
          echo "RUNNING FLAKE8 CHECK"
          find . -name "*.py" -and -not -name 'ddsix.py' -exec flake8 {} +