resolve missing egrid facility fields for 2020 and 2021 #27
Workflow file for this run
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 workflow will generate inventory and combined datasets as artifact | |
name: Generate Combined Inventories | |
on: | |
pull_request: | |
branches: [master] | |
types: [opened, reopened] # excludes syncronize to avoid redundant trigger from commits on PRs | |
workflow_dispatch: # manual trigger only | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Update pip & install testing pkgs | |
run: | | |
python -VV | |
python -m pip install --upgrade pip setuptools wheel | |
pip install pytest pytest-cov | |
- name: Install package and dependencies | |
run: | | |
pip install . | |
- name: Combine inventory files | |
run: | | |
pytest -m combined | |
- name: Upload files | |
if: always() # Upload files even if some inventories fail | |
uses: actions/upload-artifact@v3 | |
with: | |
# Artifact name | |
name: StEWI Combined inventory files | |
# A file, directory or wildcard patter that describes what to upload | |
path: | # uses local user data dir for ubuntu | |
~/.local/share/stewi/facility/* | |
~/.local/share/stewi/flow/* | |
~/.local/share/stewi/flowbyfacility/* | |
~/.local/share/stewi/flowbyprocess/* | |
~/.local/share/stewi/validation/* | |
~/.local/share/stewi/*.json | |
~/.local/share/stewicombo/* | |
~/.local/share/facilitymatcher/*.parquet | |
~/.local/share/facilitymatcher/*.json | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
# retention-days: 5 # cannot exceed the retention limit set by the repository, organization, or enterprise. |