Skip to content

Commit

Permalink
Merge pull request #228 from zivid/fix-docker-generate-datamodels-script
Browse files Browse the repository at this point in the history
Fix `docker_generate_datamodels.sh`
  • Loading branch information
eskaur authored Jul 31, 2023
2 parents 9f47f13 + 7009a8d commit 36fd451
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions continuous-integration/code-generation/generate_datamodels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR=$(realpath "$SCRIPT_DIR/../..")

if [ -z "$VIRTUAL_ENV" ]; then
source $SCRIPT_DIR/../linux/venv.sh || exit $?
activate_venv || exit $?
fi

python3 -m pip install --requirement "$SCRIPT_DIR/../python-requirements/lint.txt" || exit $?

python3 "$ROOT_DIR/continuous-integration/code-generation/datamodel_frontend_generator.py" \
Expand Down

0 comments on commit 36fd451

Please sign in to comment.