Update test-pypi.yml #1
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: TestPyPI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
architecture: x64 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: 3.9 | |
mamba-version: "*" | |
activate-environment: covsonar | |
channels: conda-forge,bioconda,defaults | |
channel-priority: true | |
- run: pip install nox==2023.4.22 | |
- run: pip install poetry==1.5.1 | |
- run: nox | |
- run: version=$(poetry version --short) && poetry version $version.dev.$(date +%s) | |
- run: poetry build | |
- run: poetry config repositories.test-pypi https://test.pypi.org/legacy/ | |
- run: poetry publish --repository test-pypi --username=__token__ --password=${{ secrets.TEST_PYPI_TOKEN }} |