Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using py311 with pylint #100

Merged
merged 1 commit into from Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 9 additions & 33 deletions .github/workflows/tox.yml
Expand Up @@ -12,65 +12,41 @@ on:
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}

strategy:
fail-fast: false
matrix:
name: [
"docs",
"py36",
"py37",
"py38",
"py39",
"py310",
"lint",
"packaging",
]
os: [
"ubuntu-latest",
]

include:

- name: docs
python: "3.6"
os: ubuntu-latest
python: "3.10"
tox_env: docs
- name: "lint"
python: "3.10"
tox_env: "lint"
- name: "packaging"
python: "3.10"
tox_env: "packaging"

- name: py36
python: "3.6"
os: ubuntu-latest
tox_env: py36
- name: py37
python: "3.7"
os: ubuntu-latest
tox_env: py37
- name: py38
python: "3.8"
os: ubuntu-latest
tox_env: py38
- name: py39
python: "3.9"
os: ubuntu-latest
tox_env: py39
- name: py310
python: "3.10"
os: ubuntu-latest
tox_env: py310
- name: py311
python: "~3.11.0-0" # see https://github.com/actions/setup-python/issues/213#issuecomment-1146676713
os: ubuntu-latest
tox_env: py311

- name: "lint"
python: "3.7"
os: ubuntu-latest
tox_env: "lint"
- name: "packaging"
python: "3.7"
os: ubuntu-latest
tox_env: "packaging"

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
@@ -1,4 +1,8 @@
---
default_language_version:
# Enforce use of py310 because pylint does not support py311 yet, causing
# failures for those happening to have that as default python.
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 # Use the ref you want to point at
Expand Down