Skip to content

Commit

Permalink
changing to python -m build in publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bonevbs committed Aug 27, 2024
1 parent 751b2af commit 9a2bd16
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/deploy_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,31 @@ on:
workflow_dispatch:

jobs:
build:

pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/torch-harmonics

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install numpy
python -m pip install setuptools wheel
- name: Install package
run: |
python -m pip install -e .
# - name: Install package
# run: |
# python -m pip install -e .
- name: Build a binary wheel and a source tarball
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit 9a2bd16

Please sign in to comment.