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

Add passing 3.11 CI by exempting blackd tests #3234

Merged
merged 8 commits into from Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
49 changes: 49 additions & 0 deletions .github/workflows/test-311.yml
@@ -0,0 +1,49 @@
name: Test

on:
push:
paths-ignore:
- "docs/**"
- "*.md"

pull_request:
paths-ignore:
- "docs/**"
- "*.md"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11-dev"]
ichard26 marked this conversation as resolved.
Show resolved Hide resolved
name: main
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
if: "!endsWith(matrix.python-version, '-dev')"
with:
python-version: ${{ matrix.python-version }}
- uses: deadsnakes/action@v2.1.1
if: endsWith(matrix.python-version, '-dev')
with:
python-version: ${{ matrix.python-version }}
# debug: true # Optional, to select a Python debug build

- name: Show python version
run: python --version --version && which python
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, I didn't know you could repeat --version and get more detail


- name: Install tox
run: |
python -m pip install pip --upgrade --disable-pip-version-check
python -m pip install . tox

- name: Run tests via tox
run: |
python -m tox -e 311
cooperlees marked this conversation as resolved.
Show resolved Hide resolved

- name: Format ourselves
run: python -m black --check src/
2 changes: 2 additions & 0 deletions CHANGES.md
Expand Up @@ -69,6 +69,8 @@

<!-- Changes to how Black is packaged, such as dependency requirements -->

- Add 3.11 CI + declare 3.11 supported minus blackd (#3234)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Add 3.11 CI + declare 3.11 supported minus blackd (#3234)
- Python 3.11 is now supported, except for `blackd` (#3234)


### Parser

<!-- Changes to the parser or to version autodetection -->
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -127,6 +127,7 @@ def find_python_files(base: Path) -> List[Path]:
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
Expand Down