pscaffold/.gitlab-ci.yml
Tobias Schmidl 0af8316b79 update
2021-03-01 09:50:49 +01:00

22 lines
502 B
YAML

image: python
test:pylama:
stage: test
only:
- master
- develop
before_script:
- if test -r requirements.txt; then pip install -r requirements.txt; fi
script:
if test -x "$(which pylama)"; then pylama *.py; fi
test:pytest:
stage: test
only:
- master
- develop
before_script:
- if test -r requirements.txt; then pip install -r requirements.txt; fi
script:
if test -x "$(which pytest)"; then pytest .; fi