Skip to content

Commit

Permalink
Merge pull request #4 from cvxgrp/cd_pipeline
Browse files Browse the repository at this point in the history
Adding deploy action
  • Loading branch information
NDevanathan authored Sep 9, 2024
2 parents 1daea8c + 8aab48b commit ad16272
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/poetry-cd.yml
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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]>",
Expand Down

0 comments on commit ad16272

Please sign in to comment.