From fc36835f0a42d9b4265581953af9d68938f4a1cc Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 17 Jan 2024 23:15:56 +0100 Subject: Add SourceHut CI control file. --- .build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..209c006 --- /dev/null +++ b/.build.yml @@ -0,0 +1,23 @@ +image: fedora/latest +packages: + - python3 + - python3-pip + - python3-build +sources: + - https://git.sr.ht/~mcepl/screenplain +tasks: + - build: | + cd screenplain + python3 -mpip install -r requirements.txt + python3 -mbuild . + - test: | + cd screenplain + python3 -mpip install -v --upgrade --target build/ --no-compile --ignore-installed --no-deps --no-index $(readlink -f dist/screenplain-*.whl|tail -n1) + export PYTHONPATH=build/ + python3 -W error -munittest discover -v -p '*test*.py' + python3 -mdoctest -v screenplain/*.py + python3 -mpycodestyle --ignore=E402,W504 screenplain tests +artifacts: + # https://is.gd/Z5VJlI + # - screenplain/dist/screenplain-*.tar.gz + # - screenplain/dist/screenplain-*.whl -- cgit