mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
.gitlab-ci.yml: enforce isort and flake8 compliance
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
5ceeb88bee
commit
e865a6347f
1 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,7 @@ before_script:
|
||||||
python-requests python-aiofiles python-python-multipart
|
python-requests python-aiofiles python-python-multipart
|
||||||
python-pytest-asyncio python-coverage python-bcrypt
|
python-pytest-asyncio python-coverage python-bcrypt
|
||||||
python-email-validator openssh python-lxml mariadb
|
python-email-validator openssh python-lxml mariadb
|
||||||
|
python-isort flake8
|
||||||
- bash -c "echo '127.0.0.1' > /etc/hosts"
|
- bash -c "echo '127.0.0.1' > /etc/hosts"
|
||||||
- bash -c "echo '::1' >> /etc/hosts"
|
- bash -c "echo '::1' >> /etc/hosts"
|
||||||
- mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
|
- mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
|
||||||
|
@ -45,6 +46,12 @@ test:
|
||||||
- AUR_CONFIG=conf/config.sqlite make -C test pytest # pytest with sqlite.
|
- AUR_CONFIG=conf/config.sqlite make -C test pytest # pytest with sqlite.
|
||||||
- coverage report --include='aurweb/*'
|
- coverage report --include='aurweb/*'
|
||||||
- coverage xml --include='aurweb/*'
|
- coverage xml --include='aurweb/*'
|
||||||
|
- flake8 --count aurweb # Assert no flake8 violations in aurweb.
|
||||||
|
- flake8 --count test # Assert no flake8 violations in test.
|
||||||
|
- flake8 --count migrations # Assert no flake8 violations in migrations.
|
||||||
|
- isort --check-only aurweb # Assert no isort violations in aurweb.
|
||||||
|
- isort --check-only test # Assert no flake8 violations in test.
|
||||||
|
- isort --check-only migrations # Assert no flake8 violations in migrations.
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
cobertura: coverage.xml
|
cobertura: coverage.xml
|
||||||
|
|
Loading…
Add table
Reference in a new issue