argos-apt/.gitlab-ci.yml
2021-04-27 14:29:42 +02:00

23 lines
579 B
YAML

image: python
test:pylama:
stage: test
only:
- master
- develop
before_script:
- apt-upgrade && apt-get install -y -q python3-apt python3-aptdaemon
- 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