Merge pull request #410 from SUSE/update_reqs #1230
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Lint , flake8 and hadolint | |
'on': [push, pull_request] | |
jobs: | |
pylint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install -r requirements_test.txt | |
- name: Analysing the code with pylint | |
run: | | |
pylint ./ocw/lib/*.py cleanup_k8s.py | |
flake8-lint: | |
runs-on: ubuntu-latest | |
name: flake8 | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: flake8 Lint | |
uses: py-actions/flake8@v2 | |
with: | |
max-line-length: "140" | |
hadolint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hadolint/[email protected] | |
with: | |
dockerfile: 'containers/Dockerfile' | |
- uses: hadolint/[email protected] | |
with: | |
dockerfile: 'containers/Dockerfile_dev' | |
- uses: hadolint/[email protected] | |
with: | |
dockerfile: 'containers/Dockerfile_k8s' | |
- uses: hadolint/[email protected] | |
with: | |
dockerfile: 'containers/Dockerfile_k8s_dev' |