Skip to content

Commit 5a5721a

Browse files
committed
Add import testing on the source package after it's built
1 parent bc878ed commit 5a5721a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Infrastructure
10+
* Add import testing on the source package after it's built
11+
912
## [1.17.0] - 2022-06-23
1013

1114
As in version 1.16.0, the replication API may still be unstable, however

noxfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def cover(session):
166166
session.run('coverage', 'erase')
167167

168168

169-
@nox.session(python=PYTHON_DEFAULT_VERSION)
169+
@nox.session(python=PYTHON_VERSIONS)
170170
def build(session):
171171
"""Build the distribution."""
172172
# TODO: consider using wheel as well
@@ -186,6 +186,10 @@ def build(session):
186186
version = os.environ['GITHUB_REF'].replace('refs/tags/v', '')
187187
print('::set-output name=version::', version, sep='')
188188

189+
session.cd('dist') # makes local imports impossible
190+
session.run('pip', 'install', glob('b2sdk-*.tar.gz')[0])
191+
session.run('python', '-c', 'from b2sdk import v0, v1, v2')
192+
189193

190194
@nox.session(python=PYTHON_DEFAULT_VERSION)
191195
def doc(session):

0 commit comments

Comments
 (0)