Skip to content

Publish PyCaption to Test PyPI #2

Publish PyCaption to Test PyPI

Publish PyCaption to Test PyPI #2

name: Publish PyCaption to Test PyPI
on: workflow_dispatch
jobs:
call-unit-tests-workflow:
name: Run unit tests
uses: pbs/pycaption/.github/workflows/main.yml@main

Check failure on line 8 in .github/workflows/release_test_pypi.yml

View workflow run for this annotation

GitHub Actions / Publish PyCaption to Test PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/release_test_pypi.yml (Line: 8, Col: 11): Secret SLACK_BOT_TOKEN is required, but not provided while calling. .github/workflows/release_test_pypi.yml (Line: 8, Col: 11): Secret SLACK_CHANNEL_ID is required, but not provided while calling.
build-n-publish:
name: Build and publish PyCaption to Test PyPI
needs: call-unit-tests-workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install --upgrade twine
- name: Build package
run: python -m build
timeout-minutes: 10
- name: Publish package on Test PyPI
run: python -m twine upload --verbose dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}