Skip to content

Commit e48fbda

Browse files
committed
search for env-file
1 parent 6411e6f commit e48fbda

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,17 @@ jobs:
5858
echo "env-name=${{ matrix.spec }}-${{ matrix.conda-env }}-${{ matrix.python-version }}" >> $GITHUB_OUTPUT
5959
echo "env-file=dev/env-${{ matrix.conda-env }}.yaml"
6060
echo "env-file=dev/env-${{ matrix.conda-env }}.yaml" >> $GITHUB_OUTPUT
61-
[ ! -f dev/env-${{ matrix.conda-env }}.yaml ] && exit 1
61+
- shell: python
62+
run: |
63+
from pathlib import Path
64+
from pprint import pprint
65+
if not (env_path:=Path("${{steps.setup.outputs.env-file}}")).exists():
66+
if env_path.parent.exists():
67+
pprint(env_path.parent.glob("*"))
68+
else:
69+
pprint(Path().glob("*"))
70+
raise FileNotFoundError(f"{env_path} does not exist")
71+
6272
- uses: conda-incubator/setup-miniconda@v3
6373
with:
6474
auto-update-conda: true

0 commit comments

Comments
 (0)