Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ci: Only run documentation/link tests on a single job.

Tim Abbott0c385fe01b5f
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index 29417acce22..57f4bec501a 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -23,10 +23,12 @@ jobs:
name: Ubuntu 20.04 (Python 3.8, backend + frontend)
os: focal
include_frontend_tests: true
+ include_documentation_tests: false
# Debian 11 ships with Python 3.9.2.
- docker_image: zulip/ci:bullseye
- name: Debian 11 (Python 3.9, backend)
+ name: Debian 11 (Python 3.9, backend + documentation)
os: bullseye
+ include_documentation_tests: true
include_frontend_tests: false
runs-on: ubuntu-latest
@@ -141,6 +143,7 @@ jobs:
chmod 755 static/generated
- name: Run documentation and api tests
+ if: ${{ matrix.include_documentation_tests }}
run: |
source tools/ci/activate-venv
# In CI, we only test links we control in test-documentation to avoid flakes
diff --git a/docs/testing/continuous-integration.md b/docs/testing/continuous-integration.md
index e8ab18cca90..043cb8cd0d1 100644
--- a/docs/testing/continuous-integration.md
+++ b/docs/testing/continuous-integration.md
@@ -60,7 +60,8 @@ checks are run to confirm the installation worked.
`zulip-ci.yml` is designed to run our main test suites on all of our
supported platforms. Out of them, only one of them runs the frontend
tests, since `puppeteer` is slow and unlikely to catch issues that
-depend on the version of the base OS and/or Python.
+depend on the version of the base OS and/or Python. Similarly, only a
+(different) one runs the documentation tests.
Our code for running the tests in CI lives under `tools/ci`; but that
logic is mostly thin wrappers around [Zulip's test