This commit is contained in:
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@@ -17,20 +17,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: dev
|
||||
- name: Lint the Dockerfile
|
||||
uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile
|
||||
- name: Lint the source code
|
||||
uses: Silleellie/pylint-github-action@v2.1
|
||||
with:
|
||||
lint-path: |
|
||||
mysite
|
||||
polls
|
||||
manage.py
|
||||
requirements-path: requirements.txt
|
||||
readme-path: README.md
|
||||
python-version: 3.11 # python version which will lint the package
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
@@ -54,5 +41,19 @@ jobs:
|
||||
Repository: ${{ github.repository }}
|
||||
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
|
||||
|
||||
- name: Check fail
|
||||
run: echo "Unreachable"
|
||||
- name: Lint the Dockerfile
|
||||
uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile
|
||||
|
||||
- name: Lint the source code
|
||||
uses: Silleellie/pylint-github-action@v2.1
|
||||
with:
|
||||
lint-path: |
|
||||
mysite
|
||||
polls
|
||||
manage.py
|
||||
requirements-path: requirements.txt
|
||||
readme-path: README.md
|
||||
python-version: 3.11 # python version which will lint the package
|
||||
|
||||
|
||||
Reference in New Issue
Block a user