-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6bb767a
commit 7b26d4a
Showing
3 changed files
with
74 additions
and
41 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,45 +1,48 @@ | ||
name: Execute AlgoPing Analytics | ||
|
||
on: | ||
schedule: | ||
- cron: "5 0 * * *" | ||
schedule: | ||
- cron: "5 0 * * *" | ||
|
||
workflow_dispatch: | ||
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 }} | ||
|
||
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/actions-poetry@v2.1.6 | ||
with: | ||
poetry-version: 1.4.2 | ||
|
||
- name: Install python dependencies | ||
run: poetry install | ||
|
||
- uses: pre-commit/action@v3.0.0 | ||
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 | ||
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/actions-poetry@v2.1.6 | ||
with: | ||
poetry-version: 1.4.2 | ||
|
||
- name: Install python dependencies | ||
run: poetry install | ||
|
||
- uses: pre-commit/action@v3.0.0 | ||
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 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[virtualenvs] | ||
in-project = true |
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