Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Setup cron
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarupilla committed Dec 28, 2020
1 parent 4e2cf0a commit 17b433c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI

on:
push:
branches:
- dev
# schedule:
# - cron: "0 2 * * 1"
# push:
# branches:
# - dev
schedule:
- cron: "0 20 * * 1"

jobs:
build:
Expand Down Expand Up @@ -33,16 +33,20 @@ jobs:
- name: 'Archive results, logs, report'
working-directory: ${{runner.workspace}}/test_suite
run: |
zip -r artifact_"`date +"%m_%d_%Y"`" report_generation/files/logs report_generation/files/results report.txt
zip -r report_"`date +"%m_%d_%Y"`" \
report_generation/files/logs \
report_generation/files/results \
report_generation/files/bmdb_models \
report.txt
- name: Create Release and Upload
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
tag_name: artifact_${{steps.date.outputs.format}}
release_name: artifact_${{steps.date.outputs.format}}
tag_name: report_${{steps.date.outputs.format}}
release_name: report_${{steps.date.outputs.format}}
draft: false
prerelease: false
upload_url_type: application/zip
Expand All @@ -54,14 +58,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifact_${{steps.date.outputs.format}}.zip
asset_name: artifact_${{steps.date.outputs.format}}.zip
asset_path: ./report_${{steps.date.outputs.format}}.zip
asset_name: report_${{steps.date.outputs.format}}.zip
asset_content_type: application/zip

# - name: 'Upload artifacts'
# uses: actions/upload-artifact@v2
# with:
# name: artifact_${{steps.date.outputs.format}}
# path: artifact_${{steps.date.outputs.format}}.zip
# if-no-files-found: warn

2 changes: 1 addition & 1 deletion report_generation/sbml/sbml_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def soup_scraper(model, headers):
return preview_url

def download_sbml():
for model in create_model_list(10, 0, -1):
for model in create_model_list(1000, 0, -1):
try:
sbml_file_link = Config.BASE_URL + soup_scraper(model, headers=headers)
urllib.request.urlretrieve(sbml_file_link, os.path.join(
Expand Down

0 comments on commit 17b433c

Please sign in to comment.