Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,19 @@ jobs:
fail-fast: false
matrix:
env-paths:
- ["envs/env1.yaml"]
- ["envs/env2.yaml"]
- ["envs/env1.yaml", "envs/env2.yaml"]
- "envs/env1.yaml"
- "envs/env2.yaml"
- |
envs/env1.yaml
envs/env2.yaml
expected-failure: ["false"]
include:
- env-paths: ["envs/failing-env1.yaml"]
- env-paths: |
envs/failing-env1.yaml
expected-failure: "true"
- env-paths: ["envs/env1.yaml", "envs/failing-env1.yaml"]
- env-paths: |
envs/env1.yaml
envs/failing-env1.yaml
expected-failure: "true"

steps:
Expand All @@ -62,7 +67,7 @@ jobs:
id: action-run
continue-on-error: true
with:
environment-paths: "${{ toJSON(matrix.env-paths) }}"
environment-paths: ${{ matrix.env-paths }}
- name: detect outcome
if: always()
shell: bash -l {0}
Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,26 @@ To use the `minimum-dependency-versions` action in workflows, simply add a new s
jobs:
my-job:
...
steps:
...
- uses: xarray-contrib/minimum-dependency-versions@version
with:
environment-paths: path/to/env.yaml
```

To analyze multiple environments at the same time, pass a multi-line string:

```yaml
jobs:
my-job:
...
steps:
...

- uses: xarray-contrib/minimum-dependency-versions@version
with:
...
environment-paths: |
path/to/env1.yaml
path/to/env2.yaml
path/to/env3.yaml
```
5 changes: 3 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: >-
The paths to the environment files
required: True
type: string
type: list
outputs: {}

runs:
Expand All @@ -22,5 +22,6 @@ runs:
env:
COLUMNS: 120
FORCE_COLOR: 3
INPUT: ${{ inputs.environment-paths }}
run: |
python minimum_versions.py ${{ join(fromJSON(inputs.environment-paths), ' ') }}
python minimum_versions.py $(echo $INPUT)
Loading