Skip to content

v0.7.0

v0.7.0 #9

Workflow file for this run

name: Push rapid-doc to PyPI
on:
push:
tags:
- v*
jobs:
unit-testing:
runs-on: ubuntu-latest
steps:
- name: Pull latest code
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Unit testings
run: |
pip install .[test]
pytest tests/unittest/test_e2e.py
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build wheel
- name: Build wheel
run: |
python -m build --wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.RAPID_DOC }}
packages_dir: dist/