Freshness #505
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: Freshness | |
on: | |
schedule: | |
- cron: "4 4 * * *" | |
jobs: | |
freshness: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: ingestion/monitoring | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: eu-central-1 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Upload freshness | |
env: | |
GDH_API_KEY: ${{ secrets.GDH_API_KEY }} | |
run: python freshness.py |