-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a build & test step for the package * Version 1.10.2-rc0
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,9 +187,8 @@ jobs: | |
- name: Upload coverage | ||
uses: codecov/codecov-action@v1 | ||
|
||
publish: | ||
name: Publish to PyPi | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
|
@@ -202,6 +201,22 @@ jobs: | |
run: | | ||
pip install wheel jupyter-packaging jupyterlab>=3 | ||
BUILD_JUPYTERLAB_EXTENSION=1 python setup.py sdist bdist_wheel | ||
# Don't publish a tar.gz file over 1MB (Issue #730) | ||
if (($(wc -c < dist/*.tar.gz) > 1000000)); then exit 1; fi | ||
# node_modules should not be in the package | ||
if (($(tar -tf dist/*.tar.gz | grep node_modules | wc -l)>0)); then echo "node_modules should not be included" && exit 1; fi | ||
# Check that the lab and the notebook extensions are there | ||
if (($(tar -tf dist/*.tar.gz | grep packages/labextension/package.json$ | wc -l)==0)); then echo "Missing lab extension" && exit 1; fi | ||
if (($(tar -tf dist/*.tar.gz | grep jupytext/nbextension/index.js$ | wc -l)==0)); then echo "Missing notebook extension" && exit 1; fi | ||
# Install | ||
pip install dist/*.tar.gz | ||
echo "Install went OK" | ||
publish: | ||
name: Publish to PyPi | ||
needs: build | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Publish | ||
uses: pypa/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""Jupytext's version number""" | ||
|
||
__version__ = "1.10.1" | ||
__version__ = "1.10.2-rc0" |