Skip to content

Commit

Permalink
ci: Use Python 3.11 as the default Python version in CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Nov 21, 2023
1 parent 669553e commit b263617
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ body:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "NA"
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/cookiecutter-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -24,7 +30,7 @@ jobs:
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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'
Expand All @@ -153,7 +155,7 @@ jobs:
- name: Run Nox
run: |
nox -s tests -p 3.10 -- -m "external"
nox -- -m "external"
coverage:
name: Coverage
Expand All @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b263617

Please sign in to comment.