-
Notifications
You must be signed in to change notification settings - Fork 13
53 lines (51 loc) · 1.39 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Lint
'on': [push, pull_request]
jobs:
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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@v3
- name: Set up Python environment
uses: actions/setup-python@v4
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@v3
- uses: hadolint/[email protected]
with:
dockerfile: 'Dockerfile'
- uses: hadolint/[email protected]
with:
dockerfile: 'Dockerfile_dev'
- uses: hadolint/[email protected]
with:
dockerfile: 'Dockerfile_k8s'
- uses: hadolint/[email protected]
with:
dockerfile: 'Dockerfile_k8s_dev'