Update README.md #2
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
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 |