Commit e92ce1a3 authored by Remi Rampin's avatar Remi Rampin

Add sourcehut CI configuration

parent d68fc894
Pipeline #73017578 passed with stage
in 2 minutes and 8 seconds
image: ubuntu/18.04
packages: [
python3,
# Required by poetry
curl, python3-pkg-resources, python3-setuptools,
# Required by venv
python3-venv,
]
sources:
- https://git.sr.ht/~remram44/taguette
tasks:
- setup_poetry: |
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3 && $HOME/.poetry/bin/poetry config settings.virtualenvs.create false
python3 -m venv $HOME/venv
- install: |
cd taguette && . $HOME/venv/bin/activate
$HOME/.poetry/bin/poetry install --no-interaction
scripts/update_translations.sh
- test: |
cd taguette && . $HOME/venv/bin/activate
export PYTHONIOENCODING="utf-8:replace"
export LANG=C.UTF-8
python -m readme_renderer README.rst >/dev/null
python tests.py
flake8 --ignore=W504 tests.py taguette
! find taguette -name '*.py' -exec grep --color 'raise \(validate\.\)\?InvalidFormat([^_]' {} +
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment