Skip to content
Merged
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
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ jobs:
restore-keys: |
${{ runner.os }}-uv-

# Extract version early so it can be used in subsequent steps
- name: Set version from tag
id: set_version
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT

- name: Install dependencies
env:
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TABPFN_COMMON_UTILS: ${{ steps.set_version.outputs.version }}
run: uv sync --extra dev --group build

- name: Run linting
Expand All @@ -52,14 +59,8 @@ jobs:
git describe --exact-match HEAD || (echo "::error::HEAD is not exactly on tag ${{ github.ref_name }}"; exit 1)
echo "Building version from tag: ${{ github.ref_name }}"

# Force version from tag; hatch-vcs/setuptools-scm can yield next_version.dev0 when
# they don't detect exact tag (e.g. in isolated build env), so we pin the version.
- name: Set version from tag for build
id: set_version
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT

- name: Clean previous builds
run: git clean -xfd dist build *.egg-info || true
run: git clean -xfd

- name: Build package
env:
Expand Down