rad-if experiments #84
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: "Recipe CI w/o deployment" | |
on: | |
pull_request: | |
branches: ["main"] | |
types: [opened, reopened, synchronize, labeled] | |
paths: # only run on changes to feedstock relevant code | |
- 'feedstock/**' | |
- 'configs/**' | |
- '.github/workflows/deploy.yaml' | |
jobs: | |
recipe-ci: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}-${{ matrix.IS_TEST }} | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
IS_TEST: | |
- 'true' | |
- 'false' | |
env: | |
IS_TEST: ${{ matrix.IS_TEST }} # Set environment variable at the job level | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: "Authenticate to Google Cloud" | |
id: "auth" | |
uses: "google-github-actions/auth@v2" | |
with: | |
credentials_json: "${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}" | |
- name: Install Runner | |
run: python -m pip install pangeo-forge-runner==0.10.2 | |
- name: Install dependencies | |
run: python -m pip install -r feedstock/requirements.txt | |
- name: "Expand meta for the recipes" | |
run: pangeo-forge-runner expand-meta --repo=. | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: "${{ steps.auth.outputs.credentials_file_path }}" |