Skip to content

Commit

Permalink
Updated the CI pipeline by uploading a dummy dataset in OMERO before …
Browse files Browse the repository at this point in the history
…testing
  • Loading branch information
rmassei committed Aug 8, 2024
1 parent a4d5d5d commit 3e510a0
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
Binary file added .github/dummy-dts-omero/sample_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/dummy-dts-omero/sample_image_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,32 @@ jobs:
singularity pull --dir /tmp docker://rocker/tidyverse
fi
# Start OMERO
- name: Start OMERO
uses: sudo-bot/action-docker-compose@latest
with:
cli-args: "-f .github/omero-docker-compose.yml up -d"

# Setup environment
- name: Set up Python environment for omero-py
uses: actions/setup-python@v4
with:
python-version: '3.11.0'

# Upload a dummy dataset in OMERO
- name: Install dependencies and upload a OMERO dummy dataset
run: |
echo "Waiting for OMERO to be ready..."
sleep 60
pip install https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp311-cp311-manylinux_2_28_x86_64.whl
pip install omero-py==5.19.4
omero login -s localhost -u root -w omero -p 6064
PID=$(omero obj new Project name='test_prj')
DID=$(omero obj new Dataset name='test_dts')
omero obj new ProjectDatasetLink parent=$PID child=$DID
omero import -d $DID .github/omero-dummy
echo "Created the dummy dataset into OMERO"
# download or create large test data via script
- name: Create test data
run: |
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,32 @@ jobs:
singularity pull --dir /tmp docker://rocker/tidyverse
fi
# Start OMERO
# Start OMERO
- name: Start OMERO
uses: sudo-bot/action-docker-compose@latest
with:
cli-args: "-f .github/omero-docker-compose.yml up -d"

# Setup environment
- name: Set up Python environment for omero-py
uses: actions/setup-python@v4
with:
python-version: '3.11.0'

# Upload a dummy dataset in OMERO
- name: Install dependencies and upload a OMERO dummy dataset
run: |
echo "Waiting for OMERO to be ready..."
sleep 60
pip install https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp311-cp311-manylinux_2_28_x86_64.whl
pip install omero-py==5.19.4
omero login -s localhost -u root -w omero -p 6064
PID=$(omero obj new Project name='test_prj')
DID=$(omero obj new Dataset name='test_dts')
omero obj new ProjectDatasetLink parent=$PID child=$DID
omero import -d $DID .github/omero-dummy
echo "Created the dummy dataset into OMERO"
# download or create large test data via script
- name: Create test data
run: |
Expand Down

0 comments on commit 3e510a0

Please sign in to comment.