-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a4e913f
Showing
5 changed files
with
158 additions
and
0 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,69 @@ | ||
# Leaderboard | ||
# =========== | ||
# | ||
|
||
--- | ||
|
||
name: 🏆 Leaderboard | ||
|
||
|
||
# Triggers | ||
# -------- | ||
# | ||
# Run on any push to the Renaissance branch of the P5 code. | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'engineering.json' | ||
schedule: | ||
- cron: '45 3 * * *' | ||
|
||
|
||
# Jobs | ||
# ---- | ||
# | ||
# What to do. | ||
|
||
jobs: | ||
leaderboard: | ||
name: 🏆 Leaderboard | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: 📚 Repository Checkout | ||
uses: actions/[email protected] | ||
with: | ||
token: ${{secrets.TOKEN}} | ||
- | ||
name: 🐍 Python Wrangling | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- | ||
name: Node Wrangling | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
- | ||
name: 📲 Software Installation | ||
run: pip install --no-input --quiet --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ slim-leaderboard | ||
- | ||
name: 📈 Leaderboard Generation | ||
run: | | ||
rm --force index.md | ||
mkdir --parents gh-pages | ||
slim-leaderboard --emoji --output_format MARKDOWN engineering.json > gh-pages/index.md | ||
env: | ||
GITHUB_TOKEN: ${{secrets.TOKEN}} | ||
- | ||
name: 📢 Leaderbord Publication | ||
uses: peaceiris/actions-gh-pages@v4 | ||
publish_dir: gh-pages | ||
publish_branch: gh_pages | ||
|
||
... | ||
|
||
# -*- mode: YAML; tab-width: 4 -*- |
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,3 @@ | ||
*.sublime-workspace | ||
venv/ | ||
.venv/ |
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,17 @@ | ||
# 🏆 Leaderboard | ||
|
||
|
||
## 📝 Notes | ||
|
||
- [PR](https://github.com/NASA-AMMOS/slim-leaderboard/pull/5) to make `slim-leaderboard` `pip install`-able is open at this time | ||
- So must `pip install` with `--index-url` of https://test.pypi.org/simple/ | ||
- But it has dependencies on plain PyPI, so `--extra-index-url` https://pypi.org/simple/ | ||
|
||
By hand: | ||
``` | ||
python3 -m venv .venv | ||
. .venv/bin/activate | ||
pip install slim-leaderboard | ||
env GITHUB_TOKEN=ghp_[READACTED] slim-leaderboard --emoji --output_format MARKDOWN engineering.json > index.md | ||
``` | ||
|
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,44 @@ | ||
{ | ||
"targets" : [ | ||
{ | ||
"name" : "https://github.com/NASA-PDS/validate", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/pds-api-client", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/search-api-notebook", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/pds4-information-model", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/registry", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/peppi", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/wds", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/portal-wp", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/wds-react", | ||
"type" : "repository" | ||
}, | ||
{ | ||
"name" : "https://github.com/NASA-PDS/data-upload-manager", | ||
"type" : "repository" | ||
} | ||
] | ||
} |
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,25 @@ | ||
{ | ||
"folders" : [ | ||
{ | ||
"file_exclude_patterns" : [ | ||
".*.cfg", | ||
"*.sublime-*", | ||
"*.py[cod]" | ||
], | ||
"folder_exclude_patterns" : [ | ||
"venv", | ||
".idle", | ||
"bin", | ||
"dist", | ||
"build", | ||
"*.egg-info", | ||
"var", | ||
"__pycache__", | ||
".coverage", | ||
".tox", | ||
".mypy*" | ||
], | ||
"path" : "." | ||
} | ||
] | ||
} |