Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add requirements.txt #17

Merged
merged 12 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/validate-python.yml
Original file line number Diff line number Diff line change
@@ -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'
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/test/scripts/test_data/study_es_0/result_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ <h4 class="panel-title">General</h4>
<td><span class="glyphicon glyphicon-cog" aria-hidden="true"></span><span class="sr-only">Debug</span></td>
<td>&ndash;</td>
<td>&ndash;</td>
<td>Retrieving chromosome lengths from &#39;/cbioportal/core/src/main/resources/scripts/importer/chromosome_sizes.json&#39;</td>
<td>Retrieving chromosome lengths from &#39;/cbioportal-core/src/main/resources/scripts/importer/chromosome_sizes.json&#39;</td>
<td>&ndash;</td>
<td></td>
</tr>
<tr class="info">
<td><span class="glyphicon glyphicon-cog" aria-hidden="true"></span><span class="sr-only">Debug</span></td>
<td>&ndash;</td>
<td>&ndash;</td>
<td>Retrieving chromosome lengths from &#39;/cbioportal/core/src/main/resources/scripts/importer/chromosome_sizes.json&#39;</td>
<td>Retrieving chromosome lengths from &#39;/cbioportal-core/src/main/resources/scripts/importer/chromosome_sizes.json&#39;</td>
<td>&ndash;</td>
<td></td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions src/test/scripts/test_data/study_es_1/result_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
<title>cBioPortal validation report: study in '/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_1'</title>
<title>cBioPortal validation report: study in '/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_1'</title>
</head>

<body>
Expand All @@ -46,7 +46,7 @@
<div class="header">
<div class="jumbotron">
<h1>cBioPortal validation report</h1>
<p>Study directory:<br />/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_1</p>
<p>Study directory:<br />/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_1</p>
<p>For details, please see <a href='https://github.com/cbioportal/cbioportal/blob/master/docs/File-Formats.md'>the documentation on file formats supported by cBioPortal</a></p>
<p>cBioPortal version -- offline instance</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/test/scripts/test_data/study_es_3/result_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
<title>cBioPortal validation report: study in '/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3'</title>
<title>cBioPortal validation report: study in '/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3'</title>
</head>

<body>
Expand All @@ -46,7 +46,7 @@
<div class="header">
<div class="jumbotron">
<h1>cBioPortal validation report</h1>
<p>Study directory:<br />/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3</p>
<p>Study directory:<br />/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3</p>
<p>For details, please see <a href='https://github.com/cbioportal/cbioportal/blob/master/docs/File-Formats.md'>the documentation on file formats supported by cBioPortal</a></p>
<p>cBioPortal version unknown -- offline instance</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/test/scripts/test_data/study_es_3/study_es_3.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
<title>cBioPortal validation report: study in '/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3'</title>
<title>cBioPortal validation report: study in '/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3'</title>
</head>

<body>
Expand All @@ -46,7 +46,7 @@
<div class="header">
<div class="jumbotron">
<h1>cBioPortal validation report</h1>
<p>Study directory:<br />/home/pnp300/git/cbioportal/core/src/test/scripts/test_data/study_es_3</p>
<p>Study directory:<br />/home/pnp300/git/cbioportal-core/src/test/scripts/test_data/study_es_3</p>
<p>For details, please see <a href='https://github.com/cbioportal/cbioportal/blob/master/docs/File-Formats.md'>the documentation on file formats supported by cBioPortal</a></p>
<p>cBioPortal version 1.19.0-SNAPSHOT</p>
</div>
Expand Down
Loading