Skip to content

Commit

Permalink
update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
luclaurent committed Oct 7, 2024
1 parent 564654d commit 91f263b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ function wheel()
# Install the wheel
pip3 install $WHEEL_DIR/amc2moodle*.whl
# Run all tests
python3 -m amc2moodle.amc2moodle.test && python -m amc2moodle.moodle2amc.test && python -m amc2moodle.utils.test
python3 -m amc2moodle.tests.test_amc2moodle && \
python -m amc2moodle.tests.test_moodle2amc && \
python -m amc2moodle.tests.test_utils_text && \
python -m amc2moodle.tests.test_utils_calculatedParser
SUCCESS=$?
# Clean-up tmp directory
cd $WHEEL_DIR
Expand All @@ -41,6 +44,9 @@ do
case "$i" in
-i|--install) pip install --user twine
;;
-w|--wheel)
wheel
;;
-t|--test)
wheel && twine upload --verbose -r testpypi $WHEEL_DIR/amc2moodle*.whl
;;
Expand Down

0 comments on commit 91f263b

Please sign in to comment.