Add .gitlab-ci.yml
This commit is contained in:
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
image: "python:3.9"
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- python --version
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- Static Analysis
|
||||||
|
- Test
|
||||||
|
|
||||||
|
flake8:
|
||||||
|
stage: Static Analysis
|
||||||
|
script:
|
||||||
|
- flake8 --max-line-length=120 *.py
|
||||||
|
|
||||||
|
pylint:
|
||||||
|
stage: Static Analysis
|
||||||
|
allow_failure: true
|
||||||
|
script:
|
||||||
|
- pylint -d C0301 *.py
|
||||||
|
|
||||||
|
unit_test:
|
||||||
|
stage: Test
|
||||||
|
script:
|
||||||
|
- pytest test_scrape.py
|
||||||
Reference in New Issue
Block a user