Commit Graph
149 Commits
Author SHA1 Message Date
Adam Turner ad61e41157 Drop support for Python 3.8 (#11511) 2023-07-25 02:07:23 +01:00
Adam Turner 0882914d5c Target PyPI in create-release.yml 2023-07-24 16:52:37 +01:00
Adam Turner 21fbee5e83 Fix OIDC token payload 2023-07-24 16:42:36 +01:00
Adam Turner 1a403e4f9a Add informational log messaging 2023-07-24 16:39:15 +01:00
Adam Turner 258b0ea9fc Revert "Switch to using `github.request`"
This reverts commit f9c89e5d84.
2023-07-24 16:30:36 +01:00
Adam Turner f9c89e5d84 Switch to using `github.request` 2023-07-24 16:08:01 +01:00
Adam Turner 52c7f66ce1 Use the correct token minting URL for TestPyPI 2023-07-24 15:40:25 +01:00
Adam Turner 6079f28faa Install twine in PyPI publish workflow 2023-07-24 15:26:17 +01:00
Adam Turner 3d43b9efdb Fix github-script syntax in create-release.yml 2023-07-24 15:20:28 +01:00
Adam Turner a539ce78f5 Add GitHub Actions environment; fix variable names 2023-07-24 15:12:46 +01:00
Adam Turner c161e9c286 Publish releases to PyPI
Implement the PyPI trusted publisher OIDC flow within GitHub Actions.
2023-07-24 14:58:06 +01:00
Adam Turner e4d1477c05 Test with Python 3.13 alpha releases (#11507) 2023-07-24 11:46:14 +01:00
Adam Turner 8942a1dddf Test with Docutils 0.20 2023-05-09 19:24:18 +01:00
James AddisonandAdam Turner c9d0933e5d linkcheck: Use context managers for HTTP requests (#11318)
This closes HTTP responses when no content reads are required, as
when requests are made in streaming mode, ``requests`` doesn't know
whether the caller may intend to later read content from a streamed
HTTP response object and holds the socket open.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-05-09 17:09:35 +01:00
Adam Turner 2b1c106bbf Update documentation workflow
- Add 'workflow_dispatch' target
- Force output to use colour
- Print traceback on error
- Use parallel building
2023-05-09 16:51:52 +01:00
Adam Turner ba7408209e Change concurrency groups for GitHub workflows
This means that 'push' triggered workflows are not cancelled.
2023-04-29 22:44:55 +01:00
James AddisonandJean-François B 0fb6716f3f Continuous integration: resolve docutils installation step build failures (#11331)
* continuous integration: add comment explaining PYTHONWARNINGS env var to main unit test workflow

* continuous integration: unit test workflow: report-but-do-not-fail
  when warnings about pkg_resources deprecation are encountered during
  docutils dependency installation

* continuous integration: unit test workflow: instead of reducing the
  severity of all DeprecationWarnings during docutils (non-dev)
  installation, apply two message filters - one each for the warnings
  encountered so far

* continuous integration: unit test workflow: add 'module' and 'line'
  fields for warning filters

Ref:
https://docs.python.org/3/library/warnings.html#describing-warning-filters


---------

Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com>
2023-04-16 15:05:09 +02:00
Adam Turner 7ecf037280 Enable 'nit-picky mode' for Sphinx's documentation
Fix several reference errors throughout the documentation and set
``nitpick_ignore`` in ``doc/conf.py``.
2023-04-06 23:11:39 +01:00
Adam Turner 52a099b7ec Resolve lint errors from Ruff 0.0.261 2023-04-05 14:19:43 +01:00
Adam Turner f019b89c05 Run Ruff linting with a known-to-work version
This means that CI tests will only fail if the 'known good' version
fails. If the latest version of Ruff fails, perhaps due to new
checks, CI will not fail overall, but the failures from the latest
version will be reported.
2023-03-31 17:52:29 +01:00
Jean-François B 3e6d56adc0 Pin to ruff==0.0.259 (provisory)
This is because I would like CI to succeed for a while in order to merge
some LaTeX patch.
2023-03-31 17:18:29 +02:00
Jean-François B 321f886097 Provis. ignore onerror depr. warn when install. DocUtils with 3.12-dev 2023-03-26 23:52:55 +02:00
Adam Turner a846f958bc Properly quote a string value in `transifex.yml` 2023-03-15 15:47:25 +00:00
Adam Turner 57545d0789 Update translations workflow for new `tx` client 2023-03-15 15:45:36 +00:00
Adam Turner cfd43d4dbe Simplify coverage workflow reporting
``PYTHONDEVMODE`` and ``PYTHONWARNDEFAULTENCODING`` are used in the
main tests, remove from the coverage workflow.
2023-02-15 05:24:51 +00:00
Adam Turner 9b104523e9 Ignore `coverage.py` warnings 2023-02-15 05:14:44 +00:00
Adam Turner c17300aa7a Treat Python warnings as errors during testing 2023-02-15 04:34:10 +00:00
Adam Turner 607908924c Always cancel in-progress workflows on new commits
The current ``github.head_ref || github.run_id`` syntax only cancels
in-progress GitHub Actions runs triggered by pull requests, as
``head_ref`` is only defined for pull requests, and ``run_id`` is
always unique. This changes to using ``ref``, which is the name of
the branch or tag linked to the commit, meaning that in-progress jobs
will be cancelled on pushes to a branch.
2023-02-15 03:35:49 +00:00
Adam Turner ff852bc7c3 Update GitHub Actions workflows 2023-02-15 03:10:50 +00:00
Hugo van Kemenade 59cdb1ffe1 Ensure Ruff creates logs in colour for GitHub Actions (#11190) 2023-02-11 13:21:27 +00:00
Adam Turner f8e8584ea5 Update GitHub bug report template 2023-01-01 19:44:35 +00:00
Adam Turner 03c6244949 Re-enable CI testing with Python 3.12 alphas
This partially reverts commit 7418d2ccc4
2022-12-30 18:11:52 +00:00
Adam Turner 5a46d8d7e1 Check NoQA comments with Ruff
This uses the special 'RUF100' code to check NoQA comments.
https://github.com/charliermarsh/ruff#automating-noqa-directives
2022-12-29 17:05:05 +00:00
Adam Turner 8634fbce60 Adopt the Ruff code linting tool
https://github.com/charliermarsh/ruff
2022-12-29 17:00:27 +00:00
Adam Turner f1d1e9c997 Update coverage workflow for Tox 4 2022-12-29 14:50:24 +00:00
Adam Turner 66a738c2bf Update coverage workflow for new configuration location 2022-12-29 14:28:58 +00:00
Hugo van Kemenade 644043c317 Remove redundant instructions from PR template 2022-12-16 16:56:43 +01:00
Daniel Eades 841c0cecb3 check for blanket noqas in CI 2022-12-16 16:50:24 +01:00
Jean-François BandDaniel Eades 7418d2ccc4 Deactivate (provisorily) Python12-dev testing (#11035)
* fix flake8 warnings

* Deactivate (provisorily) testing with 3.12-dev

(refs:
https://github.com/sphinx-doc/sphinx/pull/10995#issuecomment-1330310586
)

* Escape # in tox.ini for tox 4 compatibility ('du-latest' tests)

Co-authored-by: Daniel Eades <danieleades@hotmail.com>
2022-12-16 12:41:54 +01:00
Adam Turner 4bf9f65680 Use Sphinx 5.3+ in bug report template 2022-10-28 22:12:02 +01:00
Adam Turner 33d65fbdaf Merge Docutils master tests into the main workflow 2022-10-27 09:53:56 +01:00
Adam Turner 69035f5315 Automatically cancel CI runs when new commits are pushed 2022-10-27 09:50:52 +01:00
Adam Turner 995e2615a7 Test on Python 3.12 prereleases 2022-10-27 09:48:14 +01:00
Adam Turner e70a0fac6d Merge branch '5.x'
# Conflicts:
#	.github/workflows/main.yml
#	CHANGES
#	sphinx/__init__.py
#	sphinx/domains/c.py
2022-10-16 11:24:18 +01:00
Adam Turner 0fd45397c1 Simplify bug report template 2022-10-14 16:05:54 +01:00
Adam Turner b58eb61c9f Update all GitHub actions workflows to Ubuntu latest 2022-10-14 16:04:04 +01:00
Adam Turner cef1a030cd Update image for LaTeX job (#10916) 2022-10-12 23:01:55 +01:00
Adam Turner 63dea6172a Merge branch '5.x'
# Conflicts:
#	sphinx/locale/__init__.py
2022-09-30 16:15:24 +01:00
Julien SchuellerandAdam Turner 7514e5c6d4 CI: Move LaTeX job to GitHub Actions (#10884)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-09-30 00:03:51 +01:00
Adam Turner bb62d2a2ee Increase minimum Docutils to 0.18 2022-09-27 18:31:47 +01:00