Skip to content
Open
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
19 changes: 2 additions & 17 deletions .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,29 +135,14 @@ jobs:
python -m pip install dist/*

- name: Build the HTML documentation
run: make -C doc clean html
env:
GMT_DATA_SERVER: https://opentopography.s3.sdsc.edu/gmtdata
run: |
log_file="${RUNNER_TEMP}/sphinx-html.log"
make -C doc clean html 2>&1 | tee "${log_file}"
exit_code=${PIPESTATUS[0]}
if [[ "${RUNNER_OS}" == "Windows" && "${exit_code}" -eq 2 ]] && grep -q "make: .* Error 2816" "${log_file}"; then
echo "Sphinx HTML build exited with make error 2816 (segmentation fault) on Windows; allowing workflow to continue."
exit 0
fi
exit "${exit_code}"

- name: Build the PDF documentation
run: make -C doc pdf
env:
GMT_DATA_SERVER: https://opentopography.s3.sdsc.edu/gmtdata
run: |
log_file="${RUNNER_TEMP}/sphinx-pdf.log"
make -C doc pdf 2>&1 | tee "${log_file}"
exit_code=${PIPESTATUS[0]}
if [[ "${RUNNER_OS}" == "Windows" && "${exit_code}" -eq 2 ]] && grep -q "make: .* Error 2816" "${log_file}"; then
echo "Sphinx PDF build exited with make error 2816 (segmentation fault) on Windows; allowing workflow to continue."
exit 0
fi

- name: Create the HTML ZIP archive and rename the PDF file
run: |
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/ci_doctests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ jobs:

# Run the doctests
- name: Run doctests
run: make doctest PYTEST_EXTRA="-r P"
env:
GMT_DATA_SERVER: https://opentopography.s3.sdsc.edu/gmtdata
run: |
log_file="${RUNNER_TEMP}/pytest.log"
make doctest PYTEST_EXTRA="-r P" 2>&1 | tee "${log_file}"
exit_code=${PIPESTATUS[0]}
if [[ "${RUNNER_OS}" == "Windows" && "${exit_code}" -eq 2 ]] && grep -q "make: .* Error 2816" "${log_file}"; then
echo "Doctests exited with make error 2816 (segmentation fault) on Windows; allowing workflow to continue."
exit 0
fi
exit "${exit_code}"
GMT_DATA_SERVER: https://opentopography.s3.sdsc.edu/gmtdata
12 changes: 2 additions & 10 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,10 @@ jobs:

# Run the regular tests
- name: Run tests
run: make test PYTEST_EXTRA="-r P --reruns 2"
env:
GMT_DATA_SERVER: https://opentopography.s3.sdsc.edu/gmtdata
run: |
log_file="${RUNNER_TEMP}/pytest.log"
make test PYTEST_EXTRA="-r P --reruns 2" 2>&1 | tee "${log_file}"
exit_code=${PIPESTATUS[0]}
if [[ "${RUNNER_OS}" == "Windows" && "${exit_code}" -eq 2 ]] && grep -q "make: .* Error 2816" "${log_file}"; then
echo "Tests exited with make error 2816 (segmentation fault) on Windows; allowing workflow to continue."
exit 0
fi
exit "${exit_code}"


# Upload diff images on test failure
- name: Upload diff images if any test fails
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
Loading