Skip to content

Commit

Permalink
anopther try
Browse files Browse the repository at this point in the history
  • Loading branch information
bonevbs committed Aug 27, 2024
1 parent 03e2b2f commit cc01d25
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/deploy_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,26 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install build tools

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel build
- name: Install dependencies
run: |
python -m pip install torch
python -m pip install numpy
- name: Install package in editable mode
python -m pip install build wheel setuptools numpy
- name: Build source distribution
run: |
python -m pip install -e .
- name: Build a binary wheel and a source tarball
python -m build --sdist
- name: Install torch and build wheel
run: |
python -m build
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m build --wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit cc01d25

Please sign in to comment.