Files
mscclpp/python/ci.sh
Crutcher Dunnavant f929d2eaba add ci hook
2023-03-25 00:41:21 +00:00

25 lines
388 B
Bash
Executable File

#!/bin/bash
# CI hook script.
set -ex
# CD to this directory.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
# clean env
rm -rf .venv build
# setup a python virtual env
python -m venv .venv
# activate the virtual env
source .venv/bin/activate
# install venv deps.
pip install -r requirements.txt
# run the build and test.
./test.sh