From 78c125b26df3c779cfded0726b74f18c0ccfab8e Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 29 Nov 2021 23:59:09 +0100 Subject: [PATCH] ci/Pipeline: update --- .github/workflows/Pipeline.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 4b582bdb..13dff35d 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -18,7 +18,7 @@ jobs: - Params with: jobs: ${{ needs.Params.outputs.python_jobs }} - TestReport: true + rtifact: ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }} Coverage: uses: pyTooling/Actions/.github/workflows/CoverageCollection.yml@dev @@ -36,7 +36,8 @@ jobs: - Params with: python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} - mypy_args: -m ${{ fromJson(needs.Params.outputs.params).package }} + commands: mypy --html-report htmlmypy -p ${{ fromJson(needs.Params.outputs.params).name }} + report: htmlmypy artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} Release: @@ -55,7 +56,7 @@ jobs: - Coverage with: python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} - artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }} + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }} PublishOnPyPI: uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev @@ -66,7 +67,7 @@ jobs: - Package with: python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} - artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }} + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }} secrets: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} @@ -109,10 +110,19 @@ jobs: - PublishToGitHubPages steps: + + - name: 🗑️ Delete package Artifacts + if: ${{ ! startsWith(github.ref, 'refs/tags') }} + uses: geekyeggo/delete-artifact@v1 + with: + name: | + ${{ fromJson(needs.Params.outputs.params).artifacts.package }} + - name: 🗑️ Delete all Artifacts uses: geekyeggo/delete-artifact@v1 with: name: | + ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-* ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }} ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}