diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbd1244..1c32dd7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,14 +17,32 @@ on: - pypi jobs: - test: - # We want to run on external PRs, but not on our own internal PRs as they'll be run - # by the push to the branch. Without this if check, checks are duplicated since - # internal PRs match both the push and pull_request events. + build: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + name: Build source distribution + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 + with: + python-version: "3.14" + + - name: Build sdist + run: | + pip install nox + nox -s build + + - uses: actions/upload-artifact@v6 + with: + name: build-dist + path: ${{ github.workspace }}/dist/ + if-no-files-found: error + + test: + needs: [build] runs-on: ${{ matrix.os }} defaults: diff --git a/CHANGES.md b/CHANGES.md index b1626a4..e4643b0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,7 @@ # Release Notes -## v2.0.2 (unreleased) +## v2.0.2 (2026-10-19) ### Added diff --git a/noxfile.py b/noxfile.py index df3c807..7cd548a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -74,11 +74,8 @@ def sync_requirements(session: nox.Session) -> None: @nox.session def build(session: nox.Session) -> None: """Build sdist and wheel dists.""" - session.install("pip") session.install("build") - session.run("python", "--version") - session.run("pip", "--version") - session.run("python", "-m", "build", "--outdir", "./build/wheelhouse") + session.run("python", "-m", "build", "--outdir", str(ROOT / "dist")) @nox.session diff --git a/pyproject.toml b/pyproject.toml index b2fc547..7c4eb98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bmipy" -version = "2.0.2.dev0" +version = "2.0.2rc2" requires-python = ">=3.10" description = "Basic Model Interface for Python" license = "MIT"