Compare Single FBS #265
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 an FBS and compare to data commons | |
name: Compare Single FBS | |
on: | |
workflow_dispatch: # manual trigger only | |
inputs: | |
method: | |
description: "FBS" | |
required: true | |
default: "CAP_HAP_national_2017_m1" | |
jobs: | |
build: | |
runs-on: macos-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 | |
run: | | |
python -VV | |
python -m pip install --upgrade pip setuptools wheel | |
pip install pytest | |
# install package & dependencies | |
- name: Install package and dependencies | |
env: | |
# Temporary fix to avoid git lfs error in fedelemflowlist install https://github.com/git-lfs/git-lfs/issues/5749 | |
GIT_CLONE_PROTECTION_ACTIVE: false | |
run: | | |
pip install . | |
- name: Generate FBS | |
env: | |
METHOD: ${{ github.event.inputs.method }} | |
run: | | |
echo "Method: ${{ github.event.inputs.method }}" | |
python tests/test_single_FBS.py --method $METHOD | |
- name: Upload files | |
if: always() | |
uses: actions/[email protected] | |
with: | |
# Artifact name | |
name: "${{ github.event.inputs.method }}" | |
# A file, directory or wildcard patter that describes what to upload | |
path: | # uses local user data dir for macos | |
~/Library/Application Support/flowsa/FBSComparisons/* | |
~/Library/Application Support/flowsa/FlowBySector/* | |
~/Library/Application Support/flowsa/Log/* | |
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. |