diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91a118ce..936f47e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ unittests: - poetry run ./manage.py compilemessages # Run tests and export report - poetry run coverage run ./manage.py test - - poetry run coverage html + - poetry run coverage xml - poetry run coverage report # Build documentation - cd doc @@ -32,9 +32,13 @@ unittests: paths: - .cache/pip_tests artifacts: + when: always paths: + - coverage.xml - coverage_report/ - docs/_build + reports: + junit: coverage.xml # Check black black: diff --git a/pyproject.toml b/pyproject.toml index bffcffa0..fe92876b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ homepage = "https://ae.utbm.fr/" license = "GPL-3.0-only" [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" Django = "^2.2" Pillow = "^8.3.2" mistune = "^0.8.4" @@ -41,7 +41,7 @@ django-simple-captcha = "^0.5.14" python-dateutil = "^2.8.2" psycopg2-binary = "2.8.6" sentry-sdk = "^1.4.3" -graphviz = "^0.17" +pygraphviz = "^1.9" Jinja2 = "<=3.0.3" # Extra optional dependencies