Skip to content

Commit

Permalink
db-use-core WIP setup python
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcardle committed Dec 4, 2024
1 parent 9ba2c8b commit 53430be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: yarn
- run: script/cli_test.sh example_projects/example-project.json

Expand Down
8 changes: 6 additions & 2 deletions script/cli_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -ex

if [ -z "$1" ]; then
echo "Usage: $0 <project.json>"
exit 1
fi

DIR=`mktemp --directory`
TEMP_TAR="${DIR}/output.tar"
PROJECT_NAME=`cat $1 | jq -r '.name'`
Expand All @@ -19,8 +24,7 @@ cd ${DIR}
tar -xvf ${TEMP_TAR}
cd ${DIR}/${PROJECT_NAME}

pyenv local 3.13
python3 -m venv .venv
python3.13 -m venv .venv
source .venv/bin/activate
uv pip sync requirements.txt
python manage.py makemigrations
Expand Down

0 comments on commit 53430be

Please sign in to comment.