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
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: dev
|
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
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
@@ -54,5 +41,19 @@ jobs:
|
|||||||
Repository: ${{ github.repository }}
|
Repository: ${{ github.repository }}
|
||||||
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
|
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
|
||||||
|
|
||||||
- name: Check fail
|
- name: Lint the Dockerfile
|
||||||
run: echo "Unreachable"
|
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