Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ziafazal authored Aug 16, 2024
1 parent 2b7c026 commit 4bf38db
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,24 @@ jobs:
id: setup_python
with:
python-version: '3.12'
- name: Setup python virtual env
run: |
python -m venv .venv
# - name: activate venv
# run: .venv/bin/activate
- name: install dependencies of xblock-sdk
working-directory: xblock-sdk
run: |
.venv/bin/python -m pip install xblock-utils==4.0.0
.venv/bin/python -m pip install -qr requirements/dev.txt
.venv/bin/python -m pip install -qr requirements/local.txt
python3 -m pip install xblock-utils==4.0.0
python3 -m pip install -qr requirements/dev.txt
python3 -m pip install -qr requirements/local.txt
- name: setup h5p xblock
run: |
.venv/bin/python -m pip install .
python3 -m pip install .
- name: Run xblock workbench
working-directory: xblock-sdk
env:
EXCLUDE_SAMPLE_XBLOCKS: yes
run: |
.venv/bin/python manage.py migrate --noinput
.venv/bin/python ./manage.py runserver &
python3 manage.py migrate --noinput
python3 ./manage.py runserver &
- name: Sleep for 5s to wait for django server getting up and running
uses: juliangruber/sleep-action@v1
Expand Down

0 comments on commit 4bf38db

Please sign in to comment.