-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pyproject add [tool.setuptools.package-data] ../data/figshare/* (closes #16) pyproject add optional-dependencies fetch-data add url to install aviary from git * add .github/workflows/run-scripts.yml to test a few scripts run error-free in CI * make aviary optional in data/wbm/fetch_process_wbm_dataset.py * add dep pymatviz * run-scripts.yml continue-on-error: true * i meant fail-fast: false * editable install in run-scripts.yml * install extra deps pymatviz[export-figs] to get kaleido * add TMP_FIGS dir looks like data/wbm/fetch_process_wbm_dataset.py might auto-cancelled due to exceeding the download limit or sth like that just getting Error: The operation was canceled. so let's test scripts/compile_metrics.py instead * compile_metrics.py make dataframe_image optional * run-scripts provide WANDB_API_KEY * compile_metrics.py fix missing column access * editable install in gh-pages.yml * fix vite build ReferenceError: latest_figshare_release is not defined
- Loading branch information
Showing
8 changed files
with
93 additions
and
34 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
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,34 @@ | ||
name: Run Scripts | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
script: | ||
- scripts/compile_metrics.py | ||
- scripts/analyze_element_errors.py | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install package and dependencies | ||
run: pip install -e .[fetch-data] | ||
|
||
- name: Run script | ||
run: python ${{ matrix.script }} | ||
env: | ||
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }} |
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
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