Skip to content

Commit 69bc008

Browse files
Merge pull request #61 from luisiturrios1/fix/pipeline
Fix pipeline issues
2 parents 160c177 + 23853a6 commit 69bc008

4 files changed

Lines changed: 372 additions & 108 deletions

File tree

.github/workflows/continuous_deployment.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,55 @@ on:
44
push:
55
# Sequence of patterns matched against refs/tags
66
tags:
7-
- v[0-9]+.[0-9]+.* # add .* to allow dev releases
7+
- v[0-9]+.[0-9]+.* # add .* to allow dev releases
88

99
jobs:
1010
deploy:
1111
name: pipenv PyPI Upload
1212
runs-on: ubuntu-latest
1313
env:
1414
CI: "1"
15-
15+
1616
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v2
19-
20-
- name: Create Release
21-
id: create_release
22-
uses: actions/create-release@v1
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
with:
26-
tag_name: ${{ github.ref }}
27-
release_name: Release ${{ github.ref }}
28-
draft: false
29-
prerelease: false
30-
31-
- name: Set up Python 3.9
32-
uses: actions/setup-python@v2
33-
with:
34-
python-version: 3.9
35-
36-
- name: Install dependencies
37-
run: |
38-
python -m pip install --upgrade --upgrade-strategy=eager pip pipenv setuptools wheel twine
39-
python -m pip install .
40-
python -m pipenv install --dev
41-
env:
42-
PIPENV_DEFAULT_PYTHON_VERSION: "3.9"
43-
44-
- name: Build wheels
45-
run: |
46-
python -m pipenv run python setup.py sdist bdist_wheel
47-
# to upload to test pypi, pass repository_url: https://test.pypi.org/legacy/ and use secrets.TEST_PYPI_TOKEN
48-
- name: Publish a Python distribution to PyPI
49-
uses: pypa/gh-action-pypi-publish@release/v1
50-
with:
51-
user: __token__
52-
password: ${{ secrets.PYPI_TOKEN }}
53-
packages_dir: dist/
54-
55-
- name: Push changes
56-
uses: ad-m/github-push-action@master
57-
with:
58-
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Create Release
21+
id: create_release
22+
uses: actions/create-release@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
tag_name: ${{ github.ref }}
27+
release_name: Release ${{ github.ref }}
28+
draft: false
29+
prerelease: false
30+
31+
- name: Set up Python 3.9
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: 3.9
35+
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install --upgrade --upgrade-strategy=eager pip pipenv
39+
python -m pip install .
40+
python -m pipenv install --dev
41+
env:
42+
PIPENV_DEFAULT_PYTHON_VERSION: "3.9"
43+
44+
- name: Build wheels
45+
run: |
46+
python -m pipenv run python setup.py sdist bdist_wheel
47+
# to upload to test pypi, pass repository_url: https://test.pypi.org/legacy/ and use secrets.TEST_PYPI_TOKEN
48+
- name: Publish a Python distribution to PyPI
49+
uses: pypa/gh-action-pypi-publish@release/v1
50+
with:
51+
user: __token__
52+
password: ${{ secrets.PYPI_TOKEN }}
53+
packages_dir: dist/
54+
55+
- name: Push changes
56+
uses: ad-m/github-push-action@master
57+
with:
58+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/continuous_integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v1
4242

4343
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v5
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
architecture: ${{ matrix.architecture }}
@@ -51,9 +51,9 @@ jobs:
5151
run: |
5252
echo ::set-output name=path::$(python -c "import sys; print(sys.executable)")
5353
54-
- name: Install latest pip, setuptools, wheel
54+
- name: Install latest pip
5555
run: |
56-
python -m pip install --upgrade pip setuptools wheel pipenv --upgrade-strategy=eager
56+
python -m pip install --upgrade pip pipenv --upgrade-strategy=eager
5757
5858
- name: Install
5959
env:

Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ atomicwrites = "*"
1515
typing-extensions = "*"
1616
pytest = ">=4.6.11"
1717
autopep8 = "*"
18+
setuptools = "==68"
19+
wheel = "*"
20+
twine = "*"

0 commit comments

Comments
 (0)