diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-01-17 23:15:56 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-01-18 00:15:20 +0100 |
commit | fc36835f0a42d9b4265581953af9d68938f4a1cc (patch) | |
tree | 05866b52473f79b774151e9520438dfc0cbf73ce /.build.yml | |
parent | d0c07897dce379bb54310232ee43ea6450e42767 (diff) | |
download | screenplain-cleanup-testing.tar.gz |
Add SourceHut CI control file.HEADcleanup-testing
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 23 |
1 files changed, 23 insertions, 0 deletions
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 |