Pypi Statistics Schedule #571
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
name: Pypi Statistics Schedule | |
env: | |
DB_USER_NAME: ${{ secrets.STATS_DB_USER_NAME }} | |
DB_PASSWORD: ${{ secrets.STATS_DB_PASSWORD }} | |
DB_HOST_AND_PORT: ${{ secrets.STATS_DB_HOST_AND_PORT }} | |
DB_NAME: ${{ secrets.STATS_DB_NAME }} | |
on: | |
schedule: | |
- cron: "0 15 * * *" | |
push: | |
branches: | |
- "statistics/**" | |
- "dependabot/**" | |
workflow_dispatch: | |
jobs: | |
execute_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install package dependencies | |
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources | |
- name: Install python requirements | |
run: python -m pip install -r packaging_automation/requirements.txt | |
- name: Fetch Pypi Statistics | |
run: python -m packaging_automation.pypi_stats_collector |