mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-13 07:46:53 +08:00
add upload test
This commit is contained in:
14
.github/workflows/test_upload.yml
vendored
14
.github/workflows/test_upload.yml
vendored
@@ -52,10 +52,11 @@ jobs:
|
|||||||
pip install cython
|
pip install cython
|
||||||
python scripts/publish.py
|
python scripts/publish.py
|
||||||
python setup.py bdist_wheel
|
python setup.py bdist_wheel
|
||||||
|
- name: Set up publish
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
password: ${{ steps.mint-token.outputs.api-token }}
|
||||||
- name: Build and publish
|
- name: Build and publish
|
||||||
env:
|
|
||||||
TWINE_USERNAME: __token__
|
|
||||||
TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
||||||
|
|
||||||
@@ -78,9 +79,10 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install twine
|
pip install twine
|
||||||
|
- name: Set up publish
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
password: ${{ steps.mint-token.outputs.api-token }}
|
||||||
- name: Build and publish
|
- name: Build and publish
|
||||||
env:
|
|
||||||
TWINE_USERNAME: __token__
|
|
||||||
TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
twine upload --repository-url https://test.pypi.org/legacy/ dist/pyqlib-*-manylinux*.whl
|
twine upload --repository-url https://test.pypi.org/legacy/ dist/pyqlib-*-manylinux*.whl
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Licensed under the MIT License.
|
# Licensed under the MIT License.
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
__version__ = "0.9.4"
|
__version__ = "0.9.4.1"
|
||||||
__version__bak = __version__ # This version is backup for QlibConfig.reset_qlib_version
|
__version__bak = __version__ # This version is backup for QlibConfig.reset_qlib_version
|
||||||
import os
|
import os
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|||||||
Reference in New Issue
Block a user