Skip to content

CI: build openms-insight from source before tests (mirrors Dockerfile) #493

CI: build openms-insight from source before tests (mirrors Dockerfile)

CI: build openms-insight from source before tests (mirrors Dockerfile) #493

Workflow file for this run

name: continuous-integration
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# Match the python version used in the committed Dockerfile (release/3.5.0)
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-node@v4
with:
node-version: "21"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# OpenMS-Insight (Phase-3) is not on PyPI: build it from the migration branch
# (Vue bundle + Python) and install from source -- mirrors the Dockerfiles.
git clone -b claude/kind-heisenberg-u6dVm --single-branch --depth 1 \
https://github.com/t0mdavid-m/openms-insight.git /tmp/openms-insight
( cd /tmp/openms-insight/js-component && npm install && npm run build )
mkdir -p /tmp/openms-insight/openms_insight/js-component
cp -r /tmp/openms-insight/js-component/dist \
/tmp/openms-insight/openms_insight/js-component/dist
pip install /tmp/openms-insight
pip install -r requirements.txt # test with requirements file so can easily bump with dependabot
pip install pytest fakeredis
- name: Test
run: |
python -m pytest test_gui.py tests/