Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update main.yml #37

Merged
merged 9 commits into from
Aug 19, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,35 @@ on:
jobs:
cypress-run:
runs-on: ubuntu-latest
container: cypress/browsers:node16.14.0-slim-chrome99-ff97
container: cypress/browsers:latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: install pip
run: |
apt update -qq
apt install -y python3-pip
pip3 --version

- name: Checkout xblock-sdk repo
uses: actions/checkout@v2
with:
repository: openedx/xblock-sdk
path: xblock-sdk

- name: Setup xblock-sdk
working-directory: xblock-sdk
- uses: actions/setup-python@v5
id: setup_python
with:
python-version: '3.12'
- name: Setup python virtual env
run: |
pwd
pip install -qr requirements/dev.txt
pip install -qr requirements/local.txt

- name: Setup dependencies
python -m venv .venv
- name: activate venv
run: .venv/bin/activate
Abdul-Muqadim-Arbisoft marked this conversation as resolved.
Show resolved Hide resolved
- name: install dependencies of xblock-sdk
working-directory: xblock-sdk
run: |
pip install xblock-utils==3.4.1 importlib-resources==6.1.1
# TODO: Remove importlib-resources dependency once PR https://github.com/openedx/xblock-sdk/pull/350 is merged,
# which automatically adds the importlib package. Expected to be merged after the Redwood release.
python -m pip install xblock-utils==4.0.0
python -m pip install -qr requirements/dev.txt
python -m pip install -qr requirements/local.txt

- name: setup h5p xblock
run: |
pip install .
python -m pip install .

- name: Run xblock workbench
working-directory: xblock-sdk
Expand Down
Loading