Skip to content

BUG: fix launch model error when use torch 2.3.0 (#1543) #183

BUG: fix launch model error when use torch 2.3.0 (#1543)

BUG: fix launch model error when use torch 2.3.0 (#1543) #183

Workflow file for this run

name: Build and upload to PyPI
on:
push:
tags:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/checkout@v3
- name: Install pypa/build
run: >-
python3 -m
pip install
build setuptools
--user
- name: Build web
run: >-
python setup.py build_web
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
# if is xorbitsai repo, upload to pypi
- uses: pypa/[email protected]
if: github.repository == 'xorbitsai/inference'
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
# if is not xorbitsai repo, upload to test
- uses: pypa/[email protected]
if: github.repository != 'xorbitsai/inference'
with:
user: __token__
password: ${{ secrets.TEST_PYPI_PASSWORD }}
verbose: true
repository_url: https://test.pypi.org/legacy/