diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00449c5..ad3dc45 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: diff --git a/bump_pydantic/.github/workflows/ci.yml b/bump_pydantic/.github/workflows/ci.yml deleted file mode 100644 index c9652cc..0000000 --- a/bump_pydantic/.github/workflows/ci.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: CI - -on: - push: - branches: - - main - tags: - - '**' - pull_request: {} - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: set up python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - - uses: pre-commit/action@v3.0.0 - with: - extra_args: --all-files - - tests: - name: "Python ${{ matrix.python-version }}" - runs-on: ubuntu-latest - - timeout-minutes: 30 - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: python -m pip install hatch - - - name: Run tests - run: hatch run test - - check: # This job does nothing and is only used for the branch protection - if: always() - needs: [lint, test] - runs-on: ubuntu-latest - - steps: - - name: Decide whether the needed jobs succeeded or failed - uses: re-actors/alls-green@release/v1 - id: all-green - with: - jobs: ${{ toJSON(needs) }} - - release: - name: Release - needs: [check] - if: "success() && startsWith(github.ref, 'refs/tags/')" - runs-on: ubuntu-latest - environment: release - - permissions: - id-token: write - - steps: - - uses: actions/checkout@v3 - - - name: set up python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - - name: install - run: pip install -U build - - - name: check GITHUB_REF matches package version - uses: samuelcolvin/check-python-version@v3.1 - with: - version_file_path: bump_pydantic/__init__.py - - - name: build - run: python -m build - - - name: Upload package to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 377f430..339e4fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Framework :: Pydantic", @@ -61,7 +62,7 @@ test = "pytest {args:tests}" test-cov = "coverage run -m pytest {args:tests}" [[tool.hatch.envs.all.matrix]] -python = ["3.8", "3.9", "3.10", "3.11"] +python = ["3.8", "3.9", "3.10", "3.11", "3.12"] [tool.black] line-length = 120