Skip to content
Draft
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
26 changes: 22 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Release Notes


## v2.0.2 (unreleased)
## v2.0.2 (2026-10-19)

### Added

Expand Down
5 changes: 1 addition & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading