Skip to content

OP Stack Chain Revenue Pulls #11884

OP Stack Chain Revenue Pulls

OP Stack Chain Revenue Pulls #11884

name: OP Stack Chain Revenue Pulls
on:
schedule:
- cron: '57 * * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Display System Info
run: |
free -h
df -h
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10.11'
- name: Cache pipenv dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
- name: Install pipenv
run: |
python -m pip install pipenv
- name: Install Dependencies
run: |
pipenv install --dev
- name: Generate py files
working-directory: op_chains_tracking
run: |
pipenv run jupyter nbconvert --to python l2_revenue_tracking.ipynb
- name: Run File
working-directory: op_chains_tracking
run: |
pipenv run python l2_revenue_tracking.py
env:
IS_RUNNING_LOCAL: ${{ secrets.IS_RUNNING_LOCAL }}
BQ_APPLICATION_CREDENTIALS: ${{ secrets.BQ_APPLICATION_CREDENTIALS }}
BQ_PROJECT_ID: ${{ secrets.BQ_PROJECT_ID }}