Skip to content

Commit

Permalink
test: github action
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed May 22, 2024
1 parent 2ce7223 commit 46bf6da
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@ name: Integration
on: [pull_request]

jobs:
# integration-test:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# tutor_version: ["<18.0.0"]
# steps:
# - uses: actions/checkout@v4
# with:
# path: eox-hooks
# - uses: ./.github/actions/integration-test
# with:
# tutor_version: ${{ matrix.tutor_version }}
# app_name: "eox-hooks"
# shell_file_to_run: "eox_hooks/tests/tutor/integration.sh"
integration-second-test:
name: Integration with Tutor
integration-test:
runs-on: ubuntu-latest
strategy:
matrix: # quince palm olive
# tutor_version: ["<18.0.0", "<17.0.0", "<16.0.0"]
matrix:
tutor_version: ["<18.0.0"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: eox-hooks
- uses: ./.github/actions/integration-test
with:
tutor_version: ${{ matrix.tutor_version }}
app_name: "eox-hooks"
shell_file_to_run: "eox_hooks/tests/tutor/integration.sh"
# integration-second-test:
# name: Integration with Tutor
# strategy:
# matrix: # quince palm olive
# # tutor_version: ["<18.0.0", "<17.0.0", "<16.0.0"]
# tutor_version: ["<18.0.0"]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# path: eox-hooks

- name: Prepare Tutor & launch
run: |
echo $GITHUB_WORKSPACE
pip install "tutor${{ matrix.tutor_version }}"
TUTOR_ROOT="$(pwd)" tutor --version
TUTOR_ROOT="$(pwd)" tutor config save
ls $(pwd)
ls $(pwd)/eox-hooks
TUTOR_ROOT="$(pwd)" tutor mounts add lms,cms,lms-worker,cms-worker:$(pwd)/eox-hooks:/openedx/eox-hooks
chmod 777 . -R
# - name: Prepare Tutor & launch
# run: |
# echo $GITHUB_WORKSPACE
# pip install "tutor${{ matrix.tutor_version }}"
# TUTOR_ROOT="$(pwd)" tutor --version
# TUTOR_ROOT="$(pwd)" tutor config save
# ls $(pwd)
# ls $(pwd)/eox-hooks
# TUTOR_ROOT="$(pwd)" tutor mounts add lms,cms,lms-worker,cms-worker:$(pwd)/eox-hooks:/openedx/eox-hooks
# chmod 777 . -R

0 comments on commit 46bf6da

Please sign in to comment.