Update 2017-2022 employment FBS #166
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 provides testing for FlowByActivity configurations and | |
# generates FlowBySector files and compares to the latest public version | |
name: Testing for FlowByActivity and FlowBySector Methods | |
on: | |
# push: # removed to run only on pull request | |
pull_request: | |
branches: [master, develop] | |
types: [opened, reopened, ready_for_review] # excludes syncronize to avoid redundant trigger from commits on PRs | |
workflow_dispatch: # also allow manual trigger, for testing purposes | |
jobs: | |
FBA_testing: | |
runs-on: macos-latest | |
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 flake8 | |
# 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: Test FBA config | |
run: | | |
python tests/test_methods.py | |
FBS_testing: | |
runs-on: macos-latest | |
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 flake8 | |
# 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: Compare FBS with remote | |
id: FBS | |
if: always() # Proceed even if Test FBA fails | |
run: | | |
for m in $(python tests/test_FBS_against_remote.py list) | |
do | |
python tests/test_FBS_against_remote.py "$m" | |
done | |
- name: Upload csv files | |
# if: steps.FBS.outcome == 'success' # Upload csv only if step succeeds | |
if: always() | |
uses: actions/[email protected] | |
with: | |
# Artifact name | |
name: FBS diff files | |
# A file, directory or wildcard patter that describes what to upload | |
path: | | |
~/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. |