Scheduled Scripts #63
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: Scheduled Scripts | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 1 * * *" | |
jobs: | |
get-effis-fwi: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python Version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.5 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: false | |
activate-environment: pyrorisks | |
- run: conda install conda-lock | |
- run: conda-lock install -n pyro-risks pyrorisks.conda-lock.yml | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.8.1 | |
virtualenvs-create: false | |
- name: Install dependencies | |
run: poetry install | |
- name: Get Today Effis Fwi | |
run: poetry run python pyrorisks/platform_fwi/main.py | |
env: | |
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
BUCKET_NAME: risk | |
REGION_NAME: gra | |
ENDPOINT_URL: https://s3.gra.io.cloud.ovh.net/ | |