You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your PR touches a module that has doctests (inline `>>>` examples in
213
+
docstrings), you can run just those doctests with `python -m doctest`:
214
+
215
+
```bash
216
+
# Run doctests for a single module
217
+
python -m doctest nltk/metrics/distance.py
218
+
219
+
# Run with verbose output to see each test
220
+
python -m doctest -v nltk/metrics/distance.py
158
221
159
-
**Deprecated:** NLTK uses [Cloudbees](https://nltk.ci.cloudbees.com/) for continuous integration.
222
+
# Run a specific doctest file from the test suite
223
+
python -m doctest nltk/test/tokenize.doctest
224
+
```
225
+
226
+
These are faster than running the full test suite and useful for quick
227
+
iteration during development.
160
228
161
-
**Deprecated:** NLTK uses [Travis](https://travis-ci.org/nltk/nltk/) for continuous integration.
162
229
163
-
NLTK uses [GitHub Actions](https://github.com/nltk/nltk/actions) for continuous integration. See [here](https://docs.github.com/en/actions) for GitHub's documentation.
230
+
## Continuous Integration
231
+
232
+
NLTK uses [GitHub Actions](https://github.com/nltk/nltk/actions) for continuous integration.
233
+
See [here](https://docs.github.com/en/actions) for GitHub's documentation.
164
234
165
-
The [`.github/workflows/ci.yaml`](https://github.com/nltk/nltk/blob/develop/.github/workflows/ci.yaml) file configures the CI:
235
+
The [`.github/workflows/ci.yml`](https://github.com/nltk/nltk/blob/develop/.github/workflows/ci.yml) file configures the CI:
166
236
167
237
-`on:` section
168
-
- ensures that this CI is run on code pushes, pull request, or through the GitHub website via a button.
238
+
- ensures that this CI is run on code pushes, pull request, or through the GitHub website via `workflow_dispatch`.
169
239
170
-
- The `cache_nltk_data` job
240
+
- The `pre-commit` job
171
241
- performs these steps:
172
242
- Downloads the `nltk` source code.
173
-
- Load `nltk_data` via cache.
174
-
- Otherwise, download all the data packages through `nltk.download('all')`.
0 commit comments