Add Config to Pass Around Injected Args #621
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: Dataflow Integration Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [ opened, reopened, synchronize, labeled ] | |
schedule: | |
- cron: '0 4 * * *' # run once a day at 4 AM | |
jobs: | |
test-dataflow: | |
# run on: | |
# - all pushes to main | |
# - schedule defined above | |
# - a PR was just labeled 'test-dataflow' or 'test-all' | |
# - a PR with 'test-dataflow' or 'test-all' label was opened, reopened, or synchronized | |
if: | | |
github.event_name == 'push' || | |
github.event_name == 'schedule' || | |
github.event.label.name == 'test-all' || | |
github.event.label.name == 'test-dataflow' || | |
contains( github.event.pull_request.labels.*.name, 'test-all') || | |
contains( github.event.pull_request.labels.*.name, 'test-dataflow') | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
recipes-version: [ | |
"pangeo-forge-recipes==0.9.4", | |
# save some cycles and infer it might | |
# work on all versions between lowest and highest | |
# "pangeo-forge-recipes==0.10.0", | |
# "pangeo-forge-recipes==0.10.3", | |
"pangeo-forge-recipes==0.10.4", | |
] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}' | |
- name: Install dependencies & our package | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r dev-requirements.txt | |
python -m pip install -e .[dataflow] | |
python -m pip install -U ${{ matrix.recipes-version }} | |
# FIXME: should gcsfs actually be part of some optional installs in setup.py? | |
- name: Install gcsfs | |
run: | | |
python -m pip install 'gcsfs>=2023.4.0' | |
- name: 'Run Dataflow Integration Test' | |
run: | | |
pytest -vvvxs tests/integration/test_dataflow_integration.py |