Skip to content

Commit

Permalink
added tests/flake8/mypy to build and will exit on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgillij committed Jul 7, 2024
1 parent 529fd3d commit 81de440
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clean_build
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#####!/bin/bash
#
set -xue -o pipefail

echo "cleaning up previous run"
rm -rf dist/*.whl dist/*.gz configure config.status autom4te.cache config.log *.gz *.zst *.log
echo "autoconf"
Expand All @@ -7,6 +10,12 @@ echo "./configure"
./configure --prefix=/usr --libdir=/usr/lib --bindir=/usr/bin
echo "Copy the PKGBUILD to the root dir for running makepkg"
cp dist/pacman/PKGBUILD .
echo "run linting"
poetry run flake8 --verbose
echo "run mypy"
poetry run mypy amdfan/
echo "run the tests"
poetry run pytest
echo "running poetry build"
poetry build
echo "getting the md5sum of the tarball"
Expand Down

0 comments on commit 81de440

Please sign in to comment.