Skip to content

Update README.md

Update README.md #2

Workflow file for this run

version: 2.1
jobs:
build_test:
docker:
- image: cimg/python:3.11.0
steps:
- checkout # checkout source code to working directory
- run:
command: | # create whl and use pipenv to install dependencies
python3 setup.py sdist bdist_wheel
sudo add-apt-repository universe -y
sudo apt-get update
sudo apt install -y python3-pip
sudo pip install pipenv
pipenv install dist/convsn-0.0.3-py3-none-any.whl
pipenv install pytest
- run:
command: | # Run test suite
pipenv run pytest
test_pypi_publish:
docker:
- image: cimg/python:3.11.0
steps:
- checkout # checkout source code to working directory
- run:
command: | # create whl, install twine and publish to Test PyPI
python3 setup.py sdist bdist_wheel
sudo add-apt-repository universe -y
sudo apt-get update
sudo apt install -y python3-pip
sudo pip install pipenv
pipenv install twine
pipenv run twine upload --repository testpypi dist/*
pypi_publish:
docker:
- image: cimg/python:3.11.0
steps:
- checkout # checkout source code to working directory
- run:
command: | # create whl, install twine and publish to PyPI
python3 setup.py sdist bdist_wheel
sudo add-apt-repository universe -y
sudo apt-get update
sudo apt install -y python3-pip
sudo pip install pipenv
pipenv install twine
pipenv run twine upload dist/*
workflows:
build_test_publish:
jobs:
- build_test
- test_pypi_publish:
requires:
- build_test
filters:
branches:
only:
- develop
- pypi_publish:
requires:
- build_test
filters:
branches:
only:
- main