-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate datasource catalog check and show in frontend (#594)
- modify the check script to emit javascript that can be loaded by the frontend (working around GitHub CORS) - run the check on a schedule and stores the output as a GitHub release artifact - load and show the result in the frontend
- Loading branch information
Showing
7 changed files
with
144 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Check catalogs | ||
on: | ||
schedule: | ||
- cron: '18 3 * * *' | ||
|
||
jobs: | ||
check-catalogs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Upgrade pip | ||
run: python -m pip install --upgrade pip | ||
- name: Install Scivision | ||
run: pip install -e . | ||
- name: Check data catalog | ||
run: python ./dev/check_datasets.py | ||
- name: Store artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: check-datasets-report | ||
path: check_datasets.csv | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: catalog-checks-report-latest-release | ||
name: Catalog checks report | ||
commit: ${{ github.ref }} | ||
allowUpdates: true | ||
removeArtifacts: true | ||
artifacts: check_datasets.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters