Skip to content

Commit

Permalink
remove streamlit dependency and simplify publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anuj0456 committed Jan 25, 2025
1 parent efe8eff commit a625be4
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 825 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,24 @@ jobs:
with:
python-version: '3.9'

- name: Install and configure Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="/home/runner/.local/bin:$PATH"
poetry config virtualenvs.create false
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install poetry-dynamic-versioning
run: |
export PATH="/home/runner/.local/bin:$PATH"
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Fix lock file
run: |
export PATH="/home/runner/.local/bin:$PATH"
rm -f poetry.lock
poetry lock
- name: Install dependencies
run: |
export PATH="/home/runner/.local/bin:$PATH"
poetry install --no-root
- name: Update lock file
run: poetry lock

- name: Build package
run: |
export PATH="/home/runner/.local/bin:$PATH"
poetry build
run: poetry build

- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
export PATH="/home/runner/.local/bin:$PATH"
poetry publish
run: poetry publish
Loading

0 comments on commit a625be4

Please sign in to comment.