-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from cvxgrp/cd_pipeline
Adding deploy action
- Loading branch information
Showing
2 changed files
with
23 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,21 @@ | ||
name: poetry-cd | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
pypi_release: | ||
name: Builds Using Poetry and Publishes to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: Install Poetry | ||
run: curl -sSL https://install.python-poetry.org | python3 - | ||
- name: Add Poetry to path | ||
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH | ||
- run: poetry install | ||
- run: poetry run pytest | ||
- run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}" | ||
- name: Publish package | ||
run: poetry publish --build |
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 |
---|---|---|
|
@@ -7,8 +7,8 @@ enable = true | |
vcs = "git" | ||
|
||
[tool.poetry] | ||
name = "ls-spa" | ||
version = "0.0.0" # placeholder | ||
name = "ls_spa" | ||
version = "0.0.0" # placeholder since we are using dynamic versioning | ||
description = "A package for efficient Shapley performance attribution for least-squares problems" | ||
authors = [ | ||
"Logan Bell <[email protected]>", | ||
|