update contributor in README_CN.md #1428
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Towhee to TestPyPI | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build-n-publish: | |
name: Build and Publish Towhee to TestPyPI | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v2.3.1 | |
with: | |
python-version: 3.8 | |
- name: Get history and tags for SCM versioning | |
run: | | |
git fetch --prune --unshallow | |
git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Run Test | |
run: | | |
cd tests/testcases | |
python3 -m pip install -U pip | |
python3 -m pip install --no-cache-dir -r requirements.text | |
export TOWHEE_WORKER=True | |
python3 -W ignore test_main.py | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: Publish distribution 📦 to Test PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: "${{ secrets.TEST_PYPI_USER }}" | |
password: "${{ secrets.TEST_PYPI_PASSWORD }}" | |
repository_url: https://test.pypi.org/legacy/ |