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

ci: Use Python 3.11 as the default Python version in CI jobs #2062

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ci: Use Python 3.11 as the default Python version in CI jobs
edgarrmondragon committed Nov 21, 2023
commit e5c7fdc2df1f34b914d6e6ee2412f2b96b0e4768
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ body:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "NA"
validations:
required: true
2 changes: 1 addition & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
- name: Check out the repository
uses: actions/[email protected]

- name: Setup Python 3.11
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.11
14 changes: 10 additions & 4 deletions .github/workflows/cookiecutter-e2e.yml
Original file line number Diff line number Diff line change
@@ -3,10 +3,16 @@ name: E2E Cookiecutters
on:
pull_request:
types: [opened, synchronize, reopened]
paths: ["cookiecutter/**", "e2e-tests/cookiecutters/**"]
paths:
- "cookiecutter/**"
- "e2e-tests/cookiecutters/**"
- ".github/workflows/cookiecutter-e2e.yml"
push:
branches: [main]
paths: ["cookiecutter/**", "e2e-tests/cookiecutters/**"]
paths:
- "cookiecutter/**"
- "e2e-tests/cookiecutters/**"
- ".github/workflows/cookiecutter-e2e.yml"
workflow_dispatch:

concurrency:
@@ -18,13 +24,13 @@ env:

jobs:
lint:
name: Cookiecutter E2E ${{ matrix.python-version }} ${{ matrix.python-version }} / ${{ matrix.os }}
name: Cookiecutter E2E Python ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- { python-version: "3.10", os: "ubuntu-latest" }
- { python-version: "3.11", os: "ubuntu-latest" }

steps:
- name: Check out the repository
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"
python-version: "3.11"

- name: Upgrade pip
env:
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -50,8 +50,8 @@ jobs:
sqlalchemy: ["2.*"]
include:
- { session: tests, python-version: "3.11", os: "ubuntu-latest", sqlalchemy: "1.*" }
- { session: doctest, python-version: "3.10", os: "ubuntu-latest", sqlalchemy: "2.*" }
- { session: mypy, python-version: "3.8", os: "ubuntu-latest", sqlalchemy: "2.*" }
- { session: doctest, python-version: "3.11", os: "ubuntu-latest", sqlalchemy: "2.*" }
- { session: mypy, python-version: "3.11", os: "ubuntu-latest", sqlalchemy: "2.*" }

steps:
- name: Check out the repository
@@ -107,6 +107,8 @@ jobs:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.head.repo.fork }}
env:
NOXPYTHON: "3.11"
NOXSESSION: tests
SAMPLE_TAP_GITLAB_AUTH_TOKEN: ${{ secrets.SAMPLE_TAP_GITLAB_AUTH_TOKEN }}
SAMPLE_TAP_GITLAB_GROUP_IDS: ${{ secrets.SAMPLE_TAP_GITLAB_GROUP_IDS }}
SAMPLE_TAP_GITLAB_PROJECT_IDS: ${{ secrets.SAMPLE_TAP_GITLAB_PROJECT_IDS }}
@@ -128,10 +130,10 @@ jobs:
poetry --version
poetry self show plugins

- name: Setup Python 3.10
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.10'
python-version: ${{ env.NOXPYTHON }}
architecture: x64
cache: 'pip'
cache-dependency-path: 'poetry.lock'
@@ -153,7 +155,7 @@ jobs:

- name: Run Nox
run: |
nox -s tests -p 3.10 -- -m "external"
nox -- -m "external"

coverage:
name: Coverage
@@ -175,7 +177,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'poetry.lock'

2 changes: 1 addition & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"
python-version: "3.11"
architecture: x64

- name: Bump version
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@

package = "singer_sdk"
python_versions = ["3.11", "3.10", "3.9", "3.8", "3.7"]
main_python_version = "3.10"
main_python_version = "3.11"
locations = "singer_sdk", "tests", "noxfile.py", "docs/conf.py"
nox.options.sessions = (
"mypy",