Skip to content
Merged
Show file tree
Hide file tree
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
24 changes: 0 additions & 24 deletions .github/labeler.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/add-to-project.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/deploy-docs.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/labeler.yml

This file was deleted.

53 changes: 31 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,43 @@ name: Publish

on:
release:
types:
- created
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: 'false'
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.repository == 'Dandelion-Science/sqlmodel' }}
permissions:
id-token: write
contents: read
contents: write
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Build distribution
run: uv build
- name: Publish
run: uv publish
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- run: uv build
- uses: softprops/action-gh-release@v2
with:
files: |
dist/*.whl
dist/*.tar.gz
tag_name: ${{ github.event.release.tag_name }}
- uses: aws-actions/configure-aws-credentials@v6
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ vars.ARN_IAM_ROLE_GHA_CORE }}
- name: Get CodeArtifact authorization token
run: |
AWS_CODEARTIFACT_TOKEN=$(aws codeartifact get-authorization-token \
--domain ${{ vars.CODEARTIFACT_DOMAIN }} \
--domain-owner ${{ vars.CODEARTIFACT_DOMAIN_OWNER }} \
--query authorizationToken \
--output text)
echo "AWS_CODEARTIFACT_TOKEN=$AWS_CODEARTIFACT_TOKEN" >> $GITHUB_ENV
- run: uv publish
env:
UV_PUBLISH_USERNAME: aws
UV_PUBLISH_PASSWORD: ${{ env.AWS_CODEARTIFACT_TOKEN }}
UV_PUBLISH_URL: ${{ vars.CODEARTIFACT_PYPI_STORE_REPOSITORY_URL }}
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,38 @@ jobs:
path: coverage
include-hidden-files: true

test-sqlalchemy-prerelease:
# Run tests against the latest SQLAlchemy pre-release to catch compatibility
# issues early. This job is intentionally not required by alls-green.
runs-on: ubuntu-latest
env:
UV_PYTHON: "3.14"
UV_RESOLUTION: highest
UV_PRERELEASE: allow
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
- name: Setup uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: Install Dependencies
run: uv sync --no-dev --group tests --upgrade-package sqlalchemy
- name: Show SQLAlchemy version
run: uv run python -c "import sqlalchemy; print(f'SQLAlchemy {sqlalchemy.__version__}')"
- run: mkdir coverage
- name: Test
run: uv run bash scripts/test.sh
env:
COVERAGE_FILE: coverage/.coverage.sqlalchemy-prerelease
CONTEXT: sqlalchemy-prerelease

coverage-combine:
needs:
- test
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classifiers = [
]

dependencies = [
"SQLAlchemy >=2.0.14,<2.1.0",
"SQLAlchemy >=2.0.14,<2.2.0",
"pydantic>=2.11.0",
"typing-extensions>=4.5.0",
]
Expand Down
2 changes: 1 addition & 1 deletion sqlmodel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.0.38"
__version__ = "0.0.38.post1"

# Re-export from SQLAlchemy
from sqlalchemy.engine import create_engine as create_engine
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading