From b26361794f8e98f24e6db9892551f256fd4a88f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Tue, 21 Nov 2023 13:05:35 -0600 Subject: [PATCH] ci: Use Python 3.11 as the default Python version in CI jobs --- .github/ISSUE_TEMPLATE/bug.yml | 1 + .github/workflows/codspeed.yml | 2 +- .github/workflows/cookiecutter-e2e.yml | 12 +++++++++--- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 14 ++++++++------ .github/workflows/version_bump.yml | 2 +- noxfile.py | 2 +- 7 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index af5c7ee5e8..f6cf3f8a70 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -36,6 +36,7 @@ body: - "3.8" - "3.9" - "3.10" + - "3.11" - "NA" validations: required: true diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 5749ceef86..e41b0b51bb 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -16,7 +16,7 @@ jobs: - name: Check out the repository uses: actions/checkout@v4.1.1 - - name: Setup Python 3.11 + - name: Setup Python uses: actions/setup-python@v4.7.1 with: python-version: 3.11 diff --git a/.github/workflows/cookiecutter-e2e.yml b/.github/workflows/cookiecutter-e2e.yml index b36df1fa41..9a97acbec7 100644 --- a/.github/workflows/cookiecutter-e2e.yml +++ b/.github/workflows/cookiecutter-e2e.yml @@ -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: @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2f1f460ae..e1f42fd100 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.7.1 with: - python-version: "3.10" + python-version: "3.11" - name: Upgrade pip env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7077ba5be6..84306c9104 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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/setup-python@v4.7.1 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/setup-python@v4.7.1 with: - python-version: '3.10' + python-version: '3.11' cache: 'pip' cache-dependency-path: 'poetry.lock' diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index ad8ff0913e..0ba2e9044a 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -42,7 +42,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.7.1 with: - python-version: "3.10" + python-version: "3.11" architecture: x64 - name: Bump version diff --git a/noxfile.py b/noxfile.py index 0881ba3ffb..1a98cf8531 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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",