Skip to content

Commit

Permalink
feat: Support Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 9, 2024
1 parent 0aa84c0 commit 9ae95f8
Show file tree
Hide file tree
Showing 5 changed files with 343 additions and 302 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
FORCE_COLOR: "1"

jobs:
run:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -83,11 +86,12 @@ jobs:
matrix:
include:
- {python-version: "3.12", session: "mypy"}
- {python-version: "3.11", session: "tests"}
- {python-version: "3.13", session: "tests"}
- {python-version: "3.12", session: "tests"}
- {python-version: "3.11", session: "tests"}
- {python-version: "3.10", session: "tests"}
- {python-version: "3.9", session: "tests"}
- {python-version: "3.8", session: "tests"}
- {python-version: "3.9", session: "tests"}
- {python-version: "3.8", session: "tests"}

steps:
- name: Checkout code
Expand All @@ -99,6 +103,9 @@ jobs:
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: poetry.lock

- name: Upgrade pip
run: |
Expand Down Expand Up @@ -128,4 +135,4 @@ jobs:
TAP_JOTFORM_API_KEY: ${{ secrets.TAP_JOTFORM_API_KEY }}
TAP_JOTFORM_API_URL: "https://api.jotform.com"
run: |
nox
nox --verbose
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.3"
rev: "2.1.4"
hooks:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.0"
rev: "v0.5.1"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand Down
9 changes: 8 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
src_dir = "tap_jotform"
tests_dir = "tests"

python_versions = ["3.12", "3.11", "3.10", "3.9", "3.8"]
python_versions = [
"3.13",
"3.12",
"3.11",
"3.10",
"3.9",
"3.8",
]
main_python_version = "3.12"
locations = src_dir, tests_dir, "noxfile.py"
nox.options.sessions = (
Expand Down
Loading

0 comments on commit 9ae95f8

Please sign in to comment.