diff options
| author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-01-26 00:54:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 23:54:43 +0100 |
| commit | 6d2bb1bb7b862e4aa6feb828f760c6568fefda7e (patch) | |
| tree | a7fa2dbcc27a147f5e2fcbe1c39f356786b2c1a8 /.github/workflows | |
| parent | 00072315fe40fe093fbbf1db5ebd67c46abf9bf7 (diff) | |
| download | pygments-git-6d2bb1bb7b862e4aa6feb828f760c6568fefda7e.tar.gz | |
Declare support for Python 3.11, test 3.12-dev, drop EOL 3.6 (#2324)
* 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
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yaml | 20 | ||||
| -rw-r--r-- | .github/workflows/docs.yaml | 9 |
2 files changed, 16 insertions, 13 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2d26dfb1..f2865b78 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,6 +2,9 @@ name: Pygments on: [push, pull_request] +env: + FORCE_COLOR: 1 + permissions: contents: read # to fetch code (actions/checkout) @@ -10,15 +13,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest] - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] - exclude: - - os: ubuntu-latest - python-version: "3.6" - include: - - os: ubuntu-20.04 - python-version: "3.6" - max-parallel: 4 + os: [windows-latest, ubuntu-latest] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"] steps: - uses: actions/checkout@v3 @@ -39,6 +35,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + with: + python-version: "3.x" - name: Run make check run: make check - name: Fail if the basic checks failed @@ -50,6 +48,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + with: + python-version: "3.x" - name: Regenerate mapfiles run: make mapfiles - name: Fail if mapfiles changed @@ -65,7 +65,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.x" - name: Check out regexlint run: git clone https://github.com/pygments/regexlint - name: Run regexlint diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 41adf4e2..672beaf3 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -5,6 +5,9 @@ on: branches: - master +env: + FORCE_COLOR: 1 + permissions: {} jobs: build: @@ -14,11 +17,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.x" - name: Checkout Pygments - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Sphinx & WCAG contrast ratio run: pip install Sphinx wcag-contrast-ratio - name: Create Pyodide WASM package |
