Skip to content

Commit

Permalink
Auto Download databases onto CICD instance #2363
Browse files Browse the repository at this point in the history
  • Loading branch information
sundareswarpullela committed Sep 2, 2024
1 parent 39d7926 commit 134f37a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,25 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2


- name: Set up config files
run: |
scp [email protected]:config_secrets.json /mnt/config/config_secrets.json
echo "http://localhost:5008/api/rtxkg2/v1.4" > /mnt/config/kg2_url_override.txt
# - name: Append code dir to GITHUB_PATH # Causing RTXConfiguration import error
# run: echo $GITHUB_PATH
# - name: Download databases as needed
# run: python3 $HOME/RTX/code/ARAX/ARAXQuery/ARAX_database_manager.py --mnt --skip-if-exists --remove_unused
- name: Download databases into CICD instance
continue-on-error: true
run: |
cd /home/ubuntu/RTX
git checkout ${GITHUB_REF#refs/heads/}
git pull origin ${GITHUB_REF#refs/heads/}
/home/ubuntu/venv3.9/bin/pip3 install -r requirements.txt
/home/ubuntu/venv3.9/bin/python3 code/ARAX/ARAXQuery/ARAX_database_manager.py --mnt --skip-if-exists --remove_unused
git checkout master
- name: Stop any running containers
continue-on-error: true
Expand Down

0 comments on commit 134f37a

Please sign in to comment.