Skip to content

Commit

Permalink
Use 3.11 for Github actions (pylint-dev#6551)
Browse files Browse the repository at this point in the history
Use ``dill-pylint`` (our own version of dill) because dill's 0.3.6 release is taking forever.

Closes pylint-dev#5920

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
  • Loading branch information
2 people authored and orSolocate committed Oct 1, 2022
1 parent e5e30c1 commit 6143e8b
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:

env:
# Also change CACHE_VERSION in the other workflows
CACHE_VERSION: 27
DEFAULT_PYTHON: "3.10"
CACHE_VERSION: 29
DEFAULT_PYTHON: "3.11-dev"

jobs:
check-changelog:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
pull_request: ~

env:
CACHE_VERSION: 27
DEFAULT_PYTHON: "3.10"
CACHE_VERSION: 29
DEFAULT_PYTHON: "3.11-dev"
PRE_COMMIT_CACHE: ~/.cache/pre-commit

concurrency:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/primer-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- ".github/workflows/primer-test.yaml"

env:
CACHE_VERSION: 27
CACHE_VERSION: 29

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -26,7 +26,7 @@ jobs:
timeout-minutes: 5
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11-dev"]
outputs:
python-key: ${{ steps.generate-python-key.outputs.key }}
steps:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
needs: prepare-tests-linux
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11-dev"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
needs: prepare-tests-linux
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11-dev"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/primer_comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

env:
# This needs to be the SAME as in the Main and PR job
CACHE_VERSION: 27
CACHE_VERSION: 29

permissions:
contents: read
Expand All @@ -37,7 +37,7 @@ jobs:
id: python
uses: actions/setup-python@v4.2.0
with:
python-version: "3.10"
python-version: "3.11-dev"

# Restore cached Python environment
- name: Restore Python virtual environment
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/primer_run_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

env:
# This needs to be the SAME as in the PR and comment job
CACHE_VERSION: 27
CACHE_VERSION: 29

jobs:
run-primer:
Expand All @@ -25,7 +25,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.7", "3.10"]
python-version: ["3.7", "3.11-dev"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/primer_run_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:

env:
# This needs to be the SAME as in the Main and comment job
CACHE_VERSION: 27
CACHE_VERSION: 29

jobs:
run-primer:
Expand All @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 120
strategy:
matrix:
python-version: ["3.7", "3.10"]
python-version: ["3.7", "3.11-dev"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- published

env:
DEFAULT_PYTHON: "3.10"
DEFAULT_PYTHON: "3.11-dev"

jobs:
release-pypi:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- doc/data/messages/**

env:
CACHE_VERSION: 27
CACHE_VERSION: 29

jobs:
tests-linux:
Expand All @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11-dev"]
outputs:
python-key: ${{ steps.generate-python-key.outputs.key }}
steps:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
needs: tests-linux
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11-dev"]
env:
COVERAGERC_FILE: .coveragerc
steps:
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.11-dev"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11-dev"]
steps:
- name: Set temp directory
run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
Expand Down
3 changes: 3 additions & 0 deletions doc/whatsnew/fragments/5920.other
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Pylint now provides basic support for Python 3.11.

Closes #5920
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Debuggers",
Expand All @@ -32,7 +33,9 @@ classifiers = [
]
requires-python = ">=3.7.2"
dependencies = [
"dill>=0.2",
# TODO: Remove dill-pylint once dill 0.3.6 is released
"dill>=0.2;python_version<'3.11'",
"dill-pylint>=0.3.6.dev0;python_version>='3.11'",
"platformdirs>=2.2.0",
# Also upgrade requirements_test_min.txt and all the CACHE_VERSION in
# github actions if you are bumping astroid.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 3.0
envlist = formatting, py37, py38, py39, py310, pypy, benchmark
envlist = formatting, py37, py38, py39, py310, py311, pypy, benchmark
skip_missing_interpreters = true
requires = pip >=21.3.1
isolated_build = true
Expand Down

0 comments on commit 6143e8b

Please sign in to comment.