Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjob4life committed Nov 5, 2024
0 parents commit a4e913f
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/leaderboard.yaml
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 -*-
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.sublime-workspace
venv/
.venv/
17 changes: 17 additions & 0 deletions README.md
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
```

44 changes: 44 additions & 0 deletions engineering.json
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"
}
]
}
25 changes: 25 additions & 0 deletions leaderboard.sublime-project
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" : "."
}
]
}

0 comments on commit a4e913f

Please sign in to comment.