diff --git a/.github/workflows/validate-python.yml b/.github/workflows/validate-python.yml new file mode 100644 index 00000000..7ef914b0 --- /dev/null +++ b/.github/workflows/validate-python.yml @@ -0,0 +1,26 @@ +name: Python validator + +on: [push, pull_request] + +jobs: + build: + name: Validate Data + runs-on: ubuntu-latest + steps: + - name: 'Checkout Code' + uses: actions/checkout@v4 + with: + path: ./cbioportal-core + - name: 'Validate tests' + working-directory: ./cbioportal-core + run: | + docker run -v ${PWD}:/cbioportal-core python:3.6 /bin/sh -c ' + cd cbioportal-core && + pwd && + ls -lart && + pip install -r requirements.txt && + export PYTHONPATH=/cbioportal-core/src/main/resources/scripts && + cd src/test/scripts/ && + python unit_tests_validate_data.py && + python system_tests_validate_data.py && + python system_tests_validate_studies.py' \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..5cd1f3ba --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +requests==2.20.0 +markupsafe==2.0.1 +Jinja2==2.11.3 +mysqlclient==2.1.0 +PyYAML==6.0.1 +dsnparse==0.1.15 diff --git a/src/test/scripts/test_data/study_es_0/result_report.html b/src/test/scripts/test_data/study_es_0/result_report.html index a73fb794..0def1eae 100644 --- a/src/test/scripts/test_data/study_es_0/result_report.html +++ b/src/test/scripts/test_data/study_es_0/result_report.html @@ -142,7 +142,7 @@

General

Debug – – - Retrieving chromosome lengths from '/cbioportal/core/src/main/resources/scripts/importer/chromosome_sizes.json' + Retrieving chromosome lengths from '/cbioportal-core/src/main/resources/scripts/importer/chromosome_sizes.json' – @@ -150,7 +150,7 @@

General

Debug – – - Retrieving chromosome lengths from '/cbioportal/core/src/main/resources/scripts/importer/chromosome_sizes.json' + Retrieving chromosome lengths from '/cbioportal-core/src/main/resources/scripts/importer/chromosome_sizes.json' – diff --git a/src/test/scripts/test_data/study_es_1/result_report.html b/src/test/scripts/test_data/study_es_1/result_report.html index 38588c01..9de476a2 100644 --- a/src/test/scripts/test_data/study_es_1/result_report.html +++ b/src/test/scripts/test_data/study_es_1/result_report.html @@ -36,7 +36,7 @@ - cBioPortal validation report: study in '/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_1' + cBioPortal validation report: study in '/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_1' @@ -46,7 +46,7 @@

cBioPortal validation report

-

Study directory:
/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_1

+

Study directory:
/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_1

For details, please see the documentation on file formats supported by cBioPortal

cBioPortal version -- offline instance

diff --git a/src/test/scripts/test_data/study_es_3/result_report.html b/src/test/scripts/test_data/study_es_3/result_report.html index b76f3fd4..358f9a47 100644 --- a/src/test/scripts/test_data/study_es_3/result_report.html +++ b/src/test/scripts/test_data/study_es_3/result_report.html @@ -36,7 +36,7 @@ - cBioPortal validation report: study in '/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3' + cBioPortal validation report: study in '/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3' @@ -46,7 +46,7 @@

cBioPortal validation report

-

Study directory:
/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3

+

Study directory:
/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3

For details, please see the documentation on file formats supported by cBioPortal

cBioPortal version unknown -- offline instance

diff --git a/src/test/scripts/test_data/study_es_3/study_es_3.html b/src/test/scripts/test_data/study_es_3/study_es_3.html index 9d9ed928..00e52944 100644 --- a/src/test/scripts/test_data/study_es_3/study_es_3.html +++ b/src/test/scripts/test_data/study_es_3/study_es_3.html @@ -36,7 +36,7 @@ - cBioPortal validation report: study in '/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3' + cBioPortal validation report: study in '/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3' @@ -46,7 +46,7 @@

cBioPortal validation report

-

Study directory:
/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3

+

Study directory:
/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3

For details, please see the documentation on file formats supported by cBioPortal

cBioPortal version 1.19.0-SNAPSHOT