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

Fix CI to work on Python 3.12 #125

Merged
merged 1 commit into from
Oct 30, 2023
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
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,37 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v1
- name: Set up Python 3.x
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
python3 -m pip install setuptools wheel twine
run: python3 -m pip install setuptools wheel twine
- name: Build dists
run: |
python3 utils/build-dists.py
run: python3 utils/build-dists.py

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Set up Python 3.x
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
python3 -m pip install nox
run: python3 -m pip install nox
- name: Lint the code
run: nox -s lint
env:
# Workaround for development versions
# https://github.com/aio-libs/aiohttp/issues/7675
AIOHTTP_NO_EXTENSIONS: 1

test:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest"]
experimental: [false]

Expand Down
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ version: 2
build:
os: ubuntu-22.04
tools:
# To work around https://github.com/aio-libs/aiohttp/issues/7675, we need
# to set AIOHTTP_NO_EXTENSIONS to 1 but it has to be done in
# https://readthedocs.org/dashboard/elastic-transport-python/environmentvariables/
# because of https://github.com/readthedocs/readthedocs.org/issues/6311
python: "3"

python:
Expand Down