-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 0.0.2. Add packaging workflow (#167)
* Add packaging and publishing workflow * Fix package dependencies (thank you, CI!) * Bump version to 0.0.2
- Loading branch information
1 parent
b8c675b
commit 09e666e
Showing
5 changed files
with
49 additions
and
8 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: Lint | ||
on: | ||
pull_request: | ||
jobs: | ||
|
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,36 @@ | ||
name: Packaging | ||
on: | ||
release: | ||
types: [ created ] | ||
push: | ||
branches: [ 'master' ] | ||
pull_request: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install setuptools wheel twine build | ||
- name: Build Python package | ||
run: python -m build --sdist --wheel --outdir dist/ . | ||
|
||
- name: Install Python package | ||
run: python -m pip install dist/*.whl | ||
|
||
- name: Test that exocc runs | ||
run: exocc -o tmp --stem conv apps/x86_demo/conv/conv.py | ||
|
||
- name: Show generated C code (manual inspection for now) | ||
run: cat tmp/conv.c | ||
|
||
# Will only run on release. | ||
- name: Publish distribution to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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
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