Skip to content

Commit

Permalink
Add import testing on the source package after it's built
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolewicz committed Jun 23, 2022
1 parent bc878ed commit c8dbb74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog
All notable changes to this project will be documented in this file.

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

## [Unreleased]
Expand Down
6 changes: 5 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def cover(session):
session.run('coverage', 'erase')


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

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


@nox.session(python=PYTHON_DEFAULT_VERSION)
def doc(session):
Expand Down

0 comments on commit c8dbb74

Please sign in to comment.