Run processor #645
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: Run processor | |
on: | |
schedule: | |
- cron: '0 22 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
# cf. https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Increase git buffer size | |
run: | | |
git config --global http.postBuffer 1048576000 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: install gdal | |
run: | | |
sudo add-apt-repository ppa:ubuntugis/ppa | |
sudo apt-get update | |
sudo apt-get install gdal-bin | |
sudo apt-get install libgdal-dev | |
- name: Run Python script | |
run: | | |
python satromo_processor.py prod_config.py | |
env: # Set the secrets as env var | |
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} | |
- name: Push tools files to repo | |
uses: github-actions-x/[email protected] | |
with: | |
push-branch: 'main' | |
commit-message: 'Tools files done' | |
force-add: 'true' | |
files: tools/ | |
name: autoupdate | |
- name: Push processing files to repo | |
uses: github-actions-x/[email protected] | |
with: | |
push-branch: 'main' | |
commit-message: 'Processing files done' | |
force-add: 'true' | |
files: processing/ | |
name: autoupdate | |