-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add manifest and publishing wokrflow
- Loading branch information
1 parent
5f25749
commit 5ae1cb9
Showing
3 changed files
with
39 additions
and
2 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,35 @@ | ||
name: Build and Publish Package | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*-python" | ||
|
||
jobs: | ||
build-package: | ||
name: Build Python package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest setuptools jsonschema pytest-cov twine build | ||
- name: Install python package | ||
run: | | ||
pip install implementations/python/ | ||
- name: Test with pytest | ||
run: | | ||
pytest -r a implementations/python/tests/ | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
working-directory: implementations/python | ||
run: | | ||
python -m build -s -w | ||
twine upload dist/* |
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,8 +1,8 @@ | ||
*.pyc | ||
build/* | ||
build/ | ||
.coverage | ||
*.egg-info | ||
dist/* | ||
dist/ | ||
Untitled* | ||
.ipynb_checkpoints | ||
.pytest_cache |
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,2 @@ | ||
recursive-include mzpaf/data *.json | ||
include data/*.json |