Skip to content

Commit

Permalink
Refactor paper ranking workflow (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored Jan 15, 2025
1 parent 764c634 commit 2ced69e
Show file tree
Hide file tree
Showing 8 changed files with 307 additions and 216 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/paper_ranking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:

- name: Install dependencies
run: |
# TODO update to using uv
python -m pip install --upgrade pip
pip install -r src/bioregistry/analysis/paper_ranking_requirements.txt
pip install .[paper-ranking]
- name: Set Date Variables
id: set-date-variables
Expand All @@ -39,6 +40,7 @@ jobs:
id: run-ranking-script
run: |
echo "PYTHONPATH=$PYTHONPATH" # Verify PYTHONPATH
# TODO update to using python -m
python src/bioregistry/analysis/paper_ranking.py --start-date ${{ env.START_DATE }} --end-date ${{ env.END_DATE }}
- name: Upload Full List as Artifact
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ web = [
"curies[fastapi]",
"a2wsgi",
]
paper-ranking = [
"indra",
"pandas",
"scikit-learn",
"tabulate",
"more_itertools",
]


# See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#urls
Expand Down
Loading

0 comments on commit 2ced69e

Please sign in to comment.