Skip to content

Commit

Permalink
Avoid using py311 with pylint (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Jul 27, 2022
1 parent a2a9e6e commit 53ab889
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 33 deletions.
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

0 comments on commit 53ab889

Please sign in to comment.