.github/workflows/expand_population.yaml #18
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
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "Population/BCIO_Population.xlsx" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
concurrency: | |
group: "expand_population" | |
cancel-in-progress: true | |
jobs: | |
expand: | |
runs-on: ubuntu-latest | |
name: Expand population | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: pip install -r scripts/requirements.txt | |
- name: Run conversion | |
run: python3 scripts/expanderAggregate.py -i "Population/BCIO_Population.xlsx" | |
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. | |
with: | |
add: 'Population/BCIO_Population_Expanded.xlsx' | |
default_author: 'github_actions' | |
message: "Expanded population" | |
push: true |