Skip to content

Commit

Permalink
add file config test
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Nov 21, 2023
1 parent df165b0 commit b9935e8
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
runs-on: ubuntu-latest
setup:
- uses: actions/checkout@v4
- name: "Clone test feedstock"
# Fetches test feedstock (containing example test recipes) from pangeo-forge-recipes
run: |
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/test-action-file-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test action (file config)

on:
push:
branches: ["main"]
pull_request:
branches: [ "*" ]

jobs:
test:
name: (recipes@${{ matrix.recipes-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
recipes-version: ["0.10.3"] # , "main"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup.yaml
with:
recipes-version: ${{ matrix.recipes-version }}
- name: Write local-config.json
run: |
cat << EOF > ./local-config.json
{
"BaseCommand": {
"feedstock_subdir": "pangeo-forge-recipes/examples/feedstock"
},
"Bake": {
"prune": true,
"bakery_class": "pangeo_forge_runner.bakery.local.LocalDirectBakery"
},
"TargetStorage": {
"fsspec_class": "fsspec.implementations.local.LocalFileSystem",
"root_path": "./target"
},
"InputCacheStorage": {
"fsspec_class": "fsspec.implementations.local.LocalFileSystem",
"root_path": "./cache"
}
}
EOF
- name: "Deploy recipes"
uses: ./
with:
# select_recipe_by_label: true
pangeo_forge_runner_config: ./local-config.json
File renamed without changes.

0 comments on commit b9935e8

Please sign in to comment.