Skip to content

Commit c8dbb74

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]

noxfile.py

+5-1
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)