diff --git a/.github/workflows/leaderboard.yaml b/.github/workflows/leaderboard.yaml new file mode 100644 index 0000000..45f1633 --- /dev/null +++ b/.github/workflows/leaderboard.yaml @@ -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/checkout@v4.2.2 + 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 -*- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e52cef --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.sublime-workspace +venv/ +.venv/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..8230b8d --- /dev/null +++ b/README.md @@ -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 +``` + diff --git a/engineering.json b/engineering.json new file mode 100644 index 0000000..df9d1c2 --- /dev/null +++ b/engineering.json @@ -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" + } + ] +} diff --git a/leaderboard.sublime-project b/leaderboard.sublime-project new file mode 100644 index 0000000..2b1c0d2 --- /dev/null +++ b/leaderboard.sublime-project @@ -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" : "." + } + ] +}