Skip to content

Updating dependencies #44

Updating dependencies

Updating dependencies #44

Workflow file for this run

name: Publish 📦 to PyPI
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install packages
run: |
python -m pip install --upgrade pip
pip install -U poetry twine wheel
poetry install
- name: Run Tests
run: poetry run pytest --cov=manufacturing --cov-report=html
- name: Build wheel file in `dist/`
run: poetry build
- name: Build docs
run: |
mkdir gh-pages
touch gh-pages/.nojekyll
cd docs/
poetry run sphinx-build -b html . _build
cp -r _build/* ../gh-pages/
- name: Deploy documentation
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: gh-pages
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}