summaryrefslogtreecommitdiff
path: root/.github/workflows
Commit message (Collapse)AuthorAgeFilesLines
* Replace Makefile with tox (#2331)Jean Abou-Samra2023-02-232-23/+21
| | | | | | | | | | | | | | | Porting notes: - tox handles Python environments automatically. Remove a bit of PYTHONPATH manipulation (that was using Python 2 code which always failed!) - No `clean` target: `git clean -xdf` should fit the bill. - No `reindent` target: the `reindent.py` script it was using does not exist (anymore?). - No equivalent of tox-test-coverage, which was an artifact of the past, using nose. Instead, the test-coverage target only is ported, which uses pytest, and works.
* Declare support for Python 3.11, test 3.12-dev, drop EOL 3.6 (#2324)Hugo van Kemenade2023-01-252-13/+16
| | | | | | | | | | | * Add support for Python 3.11 * Test Python 3.12-dev * Add colour to CI for readability * Drop support for EOL Python 3.6 * Test slower Windows first to speed up CI
* CI: Use Ubuntu 20.04 for Python 3.6 testing (#2303)Jean Abou-Samra2022-12-081-0/+6
| | | | | | | | | | | Some recent GitHub action runs have started to fail, like https://github.com/Jean-Abou-Samra/pygments/actions/runs/3642986206/jobs/6150712048 (others don't fail because they pick up Python 3.6 in a cache). The problem is that GitHub upgraded the ubuntu-latest images to refer to Ubuntu 22.04, and setup-python doesn't provide Python 3.6 on 22.04, so use 20.04 for Python 3.6.
* CI: also test Python 3.11 on Windows (#2302)Jean Abou-Samra2022-12-071-6/+0
| | | #2301 eliminated the lxml dependency, which was the problematic point.
* New attempt to add Python 3.11 to CI now that it's released (#2287)Jean Abou-Samra2022-12-071-1/+7
|
* Update actions.Matthäus G. Chajdas2022-11-131-9/+9
|
* build: harden docs.yaml permissionsAlex2022-09-241-0/+4
| | | Signed-off-by: Alex <aleksandrosansan@gmail.com>
* build: harden build.yaml permissionsAlex2022-09-241-0/+3
| | | Signed-off-by: Alex <aleksandrosansan@gmail.com>
* pytest: only raise warnings as errors in CIGeorg Brandl2022-07-301-5/+1
|
* Overhaul demo and support running it locally (#2141)amitkummer2022-05-211-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Make target for building Pyodide with currently checked out Pygments Add a target to the documentation's Makefile to make Pyodide with Pygments from the current checkout. Additionally, use this target when building the documentation with the demo page. The new target works by building Pyodide on a Docker container, and then exporting the build artifacts back to the host. The Dockerfile used by the new target is based on the Dockerfile which was used for building Pyodide on the CI: https://github.com/pygments/pyodide-artifacts/blob/master/container/Dockerfile The main difference between the two is that the new Dockerfile uses the newest Pyodide base image, which is built by a repository which is actively maintained (the Iodide project is no longer maintained). The purpose of this change is to allow running the demo locally, which was not possible previously, as Pyodide was only built by the CI when deploying to Github Pages. * Add instructions on how to run the demo locally to the README * Update demo to work with Pyodide v0.20 Remove usage of Pyodide functionality which was deprecated in Pyodide v0.17: - Loading Pyodide using `languagePluginURL` and `languagePluginLoader`. - Access to globals via `pyodide.globals.x` has changed to `pyodide.globals.get("x")`. Source: https://pyodide.org/en/stable/project/release-notes/v0.17.0.html?highlight=languageplugin#api-changes * Fix #2137 * Fix use of `styles` variable before it's defined The `styles` variable was being used before it's value was set (which is done when Pyodide finishes loading). * Remove GitHub action for building Pyodide This action is obsolete, as building Pyodide is now done using `make pyodide`. * Upgrade Pages deployment action version * Add to .dockerignore all files in .gitignore * Change `pyodide` target to be a phony target
* github: avoid running tests twiceGeorg Brandl2022-02-081-0/+1
|
* Bump to Python 3.6 (closes #2059.)Matthäus G. Chajdas2022-02-011-1/+1
|
* CI: Only deploy for upstream (#2036)Hugo van Kemenade2022-01-311-3/+4
| | | | | * Only deploy for upstream * Bump versions
* Disable PyPy3 in CIMatthäus G. Chajdas2021-11-291-2/+1
| | | PyPy3 tests are very flaky and regularly cause false positives, yet we never saw PyPy3 actually failing where Python worked so the tests seem of limited value. Disabling for now until we find a more reliable way to run them.
* Fix docs build.Matthäus G. Chajdas2021-11-141-2/+2
| | | wcag-contrast-ratio is now a build-time dependency for the docs.
* Add support for Python 3.10 (#1917)Hugo van Kemenade2021-10-231-2/+2
| | | | | * Add support for Python 3.10 * Drop the dot https://twitter.com/pytestdotorg/status/753767547866972160
* Improve checks. (#1884)Matthäus G. Chajdas2021-08-171-0/+11
| | | | | | | | | Improve checks. * Fix lots of small errors. * Remove the line length check. * Add an option to skip lexers with no alias * Run checks in make check * Add a new CI target.
* CI: add a "check mapfiles" action (#1828)Georg Brandl2021-06-021-0/+14
|
* Add Python 3.9 to CI builds.Matthäus G. Chajdas2020-10-061-1/+1
|
* CI: add regexlint runGeorg Brandl2020-09-061-1/+12
|
* demo: rebuild WASM with every pushGeorg Brandl2020-09-011-4/+4
|
* Use the checkout@v2 action.Matthäus G. Chajdas2020-06-011-2/+2
|
* Run build tests on Windows.Matthäus G. Chajdas2020-03-011-2/+7
|
* Remove Python 2 compatibility (#1348)Georg Brandl2020-02-291-1/+1
| | | | | | | | | | | * Remove Python 2 compatibility * remove 2/3 shims in pygments.util * update setup.py metadata * Remove unneeded object inheritance. * Remove unneeded future imports.
* tests: split out "random input" test and make github tests verboseGeorg Brandl2019-12-091-1/+1
|
* move pyodide artifacts to separate repoGeorg Brandl2019-11-251-3/+7
|
* Merge pull request #1265 from jdufresne/pythonsMatthäus G. Chajdas2019-11-241-1/+1
|\ | | | | Document and test all supported Python versions
| * Document and test all supported Python versionsJon Dufresne2019-11-241-1/+1
| | | | | | | | | | Document support for Python 3.8 (released October 14th, 2019) and PyPy and add them to the test matrix.
* | GitHub workflow: restructure steps, so that make test is in its own ↵Georg Brandl2019-11-241-4/+3
|/ | | | "dropdown" in the output view
* add feature to download generated HTMLGeorg Brandl2019-11-241-2/+4
|
* update GitHub action for docs deploymentGeorg Brandl2019-11-241-5/+6
|
* Doc build: turn off "_foo" processing.Georg Brandl2019-11-101-0/+1
|
* Add docs deploy script.Georg Brandl2019-11-101-0/+28
|
* Run actions on push and pull requests.Matthäus G. Chajdas2019-10-051-1/+1
|
* Add GitHub actions workflow.Matthäus G. Chajdas2019-09-221-0/+27