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 all 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
30 changes: 10 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,30 @@ 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
- uses: actions/setup-python@v5
id: setup_python
with:
python-version: '3.12'
- name: install dependencies of xblock-sdk
working-directory: xblock-sdk
run: |
pwd
pip install -qr requirements/dev.txt
pip install -qr requirements/local.txt

- name: Setup dependencies
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.
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: |
pip install .
python3 -m pip install .

- name: Run xblock workbench
working-directory: xblock-sdk
Expand All @@ -60,6 +51,5 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v4
with:
start: python3 ../../xblock-sdk/manage.py runserver
browser: chrome
working-directory: tests/cypress
Loading