Skip to content

Commit

Permalink
ci/Pipeline: update
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Nov 29, 2021
1 parent 930f83e commit d7850ef
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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 }}

Expand Down Expand Up @@ -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 }}

0 comments on commit d7850ef

Please sign in to comment.