From d7850efbdd5442b86e310490dba0449c6297ad67 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 | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 4b582bdb..b1679a04 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 + artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }} Coverage: uses: pyTooling/Actions/.github/workflows/CoverageCollection.yml@dev @@ -36,7 +36,9 @@ jobs: - Params with: python_version: ${{ fromJson(needs.Params.outputs.params).python_version }} - mypy_args: -m ${{ fromJson(needs.Params.outputs.params).package }} + commands: | + cd pyEDAA + mypy --html-report ../htmlmypy -p ProjectModel artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }} Release: @@ -55,7 +57,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 +68,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 +111,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 }}