Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 44 additions & 44 deletions .github/workflows/continuous_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,55 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- v[0-9]+.[0-9]+.* # add .* to allow dev releases
- v[0-9]+.[0-9]+.* # add .* to allow dev releases

jobs:
deploy:
name: pipenv PyPI Upload
runs-on: ubuntu-latest
env:
CI: "1"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade --upgrade-strategy=eager pip pipenv setuptools wheel twine
python -m pip install .
python -m pipenv install --dev
env:
PIPENV_DEFAULT_PYTHON_VERSION: "3.9"

- name: Build wheels
run: |
python -m pipenv run python setup.py sdist bdist_wheel
# to upload to test pypi, pass repository_url: https://test.pypi.org/legacy/ and use secrets.TEST_PYPI_TOKEN
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: dist/

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v2

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade --upgrade-strategy=eager pip pipenv
python -m pip install .
python -m pipenv install --dev
env:
PIPENV_DEFAULT_PYTHON_VERSION: "3.9"

- name: Build wheels
run: |
python -m pipenv run python setup.py sdist bdist_wheel
# to upload to test pypi, pass repository_url: https://test.pypi.org/legacy/ and use secrets.TEST_PYPI_TOKEN
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: dist/

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
Expand All @@ -51,9 +51,9 @@ jobs:
run: |
echo ::set-output name=path::$(python -c "import sys; print(sys.executable)")

- name: Install latest pip, setuptools, wheel
- name: Install latest pip
run: |
python -m pip install --upgrade pip setuptools wheel pipenv --upgrade-strategy=eager
python -m pip install --upgrade pip pipenv --upgrade-strategy=eager

- name: Install
env:
Expand Down
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ atomicwrites = "*"
typing-extensions = "*"
pytest = ">=4.6.11"
autopep8 = "*"
setuptools = "==68"
wheel = "*"
twine = "*"
Loading
Loading