Historical Volume Ingest #11727
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 is a basic workflow to help you get started with Actions | |
name: Historical Volume Ingest | |
# Workflow will run every half hour | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
push: | |
branches: [ main ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# Setups up Python 3.10 and GitHub CLI | |
- name: Install Dependencies | |
run: | | |
pip install -r requirements.txt | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
# Downloads the latest database | |
- name: Historical Ingest | |
env: # Or as an environment variable | |
REDIS_HOST: ${{ secrets.REDIS_VOLUME_HOST }} | |
REDIS_PORT: ${{ secrets.REDIS_VOLUME_PORT }} | |
REDIS_PW: ${{ secrets.REDIS_VOLUME_PW }} | |
run: | | |
python ./app.py |