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 @@
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
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
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