-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct GitHub actions and Release script (#319)
* Ensure Linter Black runs as test * Update Release script * Correct Workflow names
- Loading branch information
1 parent
1b7ee10
commit 1c28486
Showing
2 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
#!/bin/bash | ||
|
||
THISDIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
BASEDIR=$THISDIR/.. | ||
rm $BASEDIR/dist/*.whl $BASEDIR/dist/*.tar.gz | ||
|
||
rm $THISDIR/../dist/*.whl $THISDIR/../dist/*.tar.gz | ||
virtualenv $BASEDIR/pyvirtualenv | ||
source $BASEDIR/pyvirtualenv/bin/activate | ||
|
||
python $THISDIR/../setup.py bdist_wheel sdist | ||
|
||
coverage run setup.py test -q | ||
pip install -r $BASEDIR/requirements.txt | ||
pip install tox | ||
|
||
python -m tox --root $BASEDIR/ | ||
if [ $? -ne 0 ]; then | ||
echo "FAILED: Cannot release a broken version!" | ||
exit 127 | ||
fi | ||
|
||
twine upload -s $THISDIR/../dist/pyangbind* | ||
pip install twine build | ||
python -m build --outdir $BASEDIR/dist/ | ||
|
||
python -m twine upload -s $BASEDIR/dist/pyangbind* |