From 1312128463b11f4e6eb16c08e81efc64eccfff96 Mon Sep 17 00:00:00 2001 From: kchason Date: Wed, 4 May 2022 10:49:09 -0400 Subject: [PATCH 1/4] Initial build pipeline --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4d0c35..f5dec37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,3 +39,30 @@ jobs: run: make clean - name: Run tests run: make PYTHON3=python check + + # Build the binary wheel as well as the source tar + - name: Build Objects + # if: startsWith(github.ref, 'refs/tags') + run: python setup.py sdist bdist_wheel + + # Ensure the objects were packaged correctly and there wasn't an issue with + # the compilation or packaging process. + - name: Check Objects + # if: startsWith(github.ref, 'refs/tags') + run: | + pip install -q twine + twine check dist/* + + # Upload the packages on all develop and main pipleines for test consumption + - name: Upload HTML Docs + # if: startsWith(github.ref, 'refs/tags') + uses: actions/upload-artifact@v2 + with: + name: packages + path: ./dist/ + + # If this commit is the result of a Git tag, push the wheel and tar packages + # to the PyPi registry + - name: Publish to PyPI + if: startsWith(github.ref, 'refs/tags') + run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/* From a9948ed83044b7a0de8de35ede92ea5c3eaa3a80 Mon Sep 17 00:00:00 2001 From: kchason Date: Wed, 4 May 2022 10:54:16 -0400 Subject: [PATCH 2/4] Add wheel install --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5dec37..e1ab128 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: - name: Check Objects # if: startsWith(github.ref, 'refs/tags') run: | - pip install -q twine + pip install -q twine wheel twine check dist/* # Upload the packages on all develop and main pipleines for test consumption From 01711870821d313d16c48f76ebebb5fb4fd8af92 Mon Sep 17 00:00:00 2001 From: kchason Date: Wed, 4 May 2022 10:58:19 -0400 Subject: [PATCH 3/4] Reorder install and remove tag constraints --- .github/workflows/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1ab128..2ad1ebf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,20 +42,17 @@ jobs: # Build the binary wheel as well as the source tar - name: Build Objects - # if: startsWith(github.ref, 'refs/tags') - run: python setup.py sdist bdist_wheel + run: | + pip install -q twine wheel + python setup.py sdist bdist_wheel # Ensure the objects were packaged correctly and there wasn't an issue with # the compilation or packaging process. - name: Check Objects - # if: startsWith(github.ref, 'refs/tags') - run: | - pip install -q twine wheel - twine check dist/* + run: twine check dist/* # Upload the packages on all develop and main pipleines for test consumption - name: Upload HTML Docs - # if: startsWith(github.ref, 'refs/tags') uses: actions/upload-artifact@v2 with: name: packages From 0c8066a0f50aa1f7aac1ae49c091f9e08dfb6781 Mon Sep 17 00:00:00 2001 From: kchason Date: Tue, 10 May 2022 08:09:34 -0400 Subject: [PATCH 4/4] Rename CI file --- .github/workflows/{ci.yml => cicd.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => cicd.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/cicd.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/cicd.yml