-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Build sdist and wheel | ||
python -m pip install -U pip | ||
python -m pip install build | ||
python -m build | ||
|
||
# Check sdist install and imports | ||
mkdir -p test-sdist | ||
cd test-sdist | ||
python -m venv venv-sdist | ||
venv-sdist/bin/python -m pip install ../dist/outlines-*.tar.gz | ||
venv-sdist/bin/python -c "import outlines" | ||
cd .. | ||
|
||
# Check wheel install and imports | ||
mkdir -p test-wheel | ||
cd test-wheel | ||
python -m venv venv-wheel | ||
venv-wheel/bin/python -m pip install ../dist/outlines-*.whl | ||
venv-wheel/bin/python -c "import outlines" | ||
cd .. |
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 |
---|---|---|
|
@@ -15,28 +15,11 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Build sdist and wheel | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install build | ||
python -m build | ||
- name: Build SDist and Wheel | ||
run: ./.github/scripts/build_sdist_and_wheel.sh | ||
- name: Check that the package version matches the Release name | ||
run: | | ||
grep -Rq "^Version: ${GITHUB_REF:10}$" outlines.egg-info/PKG-INFO | ||
- name: Check sdist install and imports | ||
run: | | ||
mkdir -p test-sdist | ||
cd test-sdist | ||
python -m venv venv-sdist | ||
venv-sdist/bin/python -m pip install ../dist/outlines-*.tar.gz | ||
venv-sdist/bin/python -c "import outlines" | ||
- name: Check wheel install and imports | ||
run: | | ||
mkdir -p test-wheel | ||
cd test-wheel | ||
python -m venv venv-wheel | ||
venv-wheel/bin/python -m pip install ../dist/outlines-*.whl | ||
venv-wheel/bin/python -c "import outlines" | ||
- name: Publish to PyPi | ||
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