-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update repo stats app and leaderboard (#287)
* update repo stats app and leaderboard * delete old functions * fix actions * fix spelling * fix * fix requirements * fix requirements * fix scraper * fix gitignore * fix something * update requirements * update scraper * update leaderboard * fix deployment setup
- Loading branch information
1 parent
f6d49e7
commit bd7b011
Showing
15 changed files
with
763 additions
and
549 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 |
---|---|---|
@@ -1,35 +1,36 @@ | ||
name: Run repo scraper | ||
|
||
on: | ||
#push: | ||
# branches: [main] | ||
#schedule: | ||
# - cron: "0 0 * * *" # Run at the end of every day | ||
workflow_dispatch: {} # manual executions | ||
|
||
jobs: | ||
scrape: | ||
name: Run repo scraper | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
cache: 'pip' | ||
cache-dependency-path: setup.py | ||
|
||
- name: Auth with GCP | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ secrets.GCP_SA_KEY }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r tools/repo_scraper/requirements.txt | ||
pip install -r tools/repo_stats/requirements.txt | ||
pip list | ||
- name: Run repo scraper | ||
env: | ||
DROPBOX_TOKEN: ${{ secrets.DROPBOX_TOKEN }} | ||
DROPBOX_APP_KEY: ${{ secrets.DROPBOX_APP_KEY }} | ||
DROPBOX_APP_SECRET: ${{ secrets.DROPBOX_APP_SECRET }} | ||
DROPBOX_REFRESH_TOKEN: ${{ secrets.DROPBOX_REFRESH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python tools/repo_scraper/repo_scraper.py | ||
python tools/repo_stats/scraper.py |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.