Add .gitlab-ci.yml

This commit is contained in:
2021-03-07 14:59:31 +00:00
parent cccc048a92
commit 71583eacd5

25
.gitlab-ci.yml Normal file
View 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