Skip to content

Commit

Permalink
Merge pull request #448 from riccardoporreca/feature/447-bash-actions…
Browse files Browse the repository at this point in the history
…-tests-fail-fast

Capture failed tests as actual step/job failures
  • Loading branch information
maresb authored Jul 9, 2023
2 parents 5bbb1a6 + fa8434d commit 9d882c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
pytest-xdist
- name: Install dev deps
shell: bash -eo pipefail -l {0}
run: |
set -x
echo "${PATH}"
Expand All @@ -96,13 +97,13 @@ jobs:
python -m pip install -r requirements-dev.txt
- name: install conda-lock
shell: bash -l {0}
shell: bash -eo pipefail -l {0}
run: |
which pip
pip install -e . --force-reinstall
- name: run-test
shell: bash -l {0}
shell: bash -eo pipefail -l {0}
run: |
cp pyproject.toml "${RUNNER_TEMP}/"
cp -a tests "${RUNNER_TEMP}/"
Expand All @@ -116,7 +117,7 @@ jobs:
- uses: codecov/codecov-action@v3

- name: test-gdal
shell: bash -l {0}
shell: bash -eo pipefail -l {0}
run: |
pushd "${RUNNER_TEMP}/tests/gdal"
export TMPDIR="${RUNNER_TEMP}"
Expand Down
2 changes: 1 addition & 1 deletion conda_lock/conda_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def update_specs_for_arch(
f"Could not lock the environment for platform {platform}: {err_json.get('message')}"
) from exc

dryrun_install: DryRunInstall = json.loads(proc.stdout)
dryrun_install: DryRunInstall = json.loads(extract_json_object(proc.stdout))
else:
dryrun_install = {"actions": {"LINK": [], "FETCH": []}}

Expand Down

0 comments on commit 9d882c3

Please sign in to comment.