Execute AlgoPing Analytics #541
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: Execute AlgoPing Analytics | |
on: | |
schedule: | |
- cron: "5 0 * * *" | |
workflow_dispatch: | |
jobs: | |
run-algoping-analytics: | |
env: | |
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }} | |
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }} | |
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }} | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }} | |
BITQUERY_API_KEY: ${{ secrets.BITQUERY_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NOTIBOY_API_KEY: ${{ secrets.NOTIBOY_API_KEY }} | |
NOTIBOY_USER_ADDRESS: ${{ secrets.NOTIBOY_USER_ADDRESS }} | |
NOTIBOY_APP_ID: ${{ secrets.NOTIBOY_APP_ID }} | |
name: Run AlgoPing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.8 | |
- name: Set up Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.4.2 | |
- name: Install python dependencies | |
run: poetry install | |
- uses: pre-commit/[email protected] | |
name: "Linters and formatters check" | |
with: | |
extra_args: --all-files --show-diff-on-failure | |
- name: Run AlgoPing Analytics | |
run: PYTHONPATH="." poetry run python src/analytics.py |