Skip to content

Commit

Permalink
move to other job
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Apr 3, 2024
1 parent e01ca4e commit d94a4d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-wheel-and-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,23 @@ jobs:
with:
build-label: ubuntu-20.04
whl: ${{ needs.build-wheel-and-push.outputs.wheel }}
internal: ${{ needs.set-outputs.outputs.internal }}
secrets: inherit

"""
push-to-internal-pypi:
if: $INTERNAL
needs: pull-wheel-and-test
runs-on: ubuntu-latest
steps:
- name: Push to internal pypi
if: ${{ env.INTERNAL == 'true' }}
uses: neuralmagic/nm-actions/actions/nm-upload-whl@upload-pypi
with:
python: '3.10'
server: ${{ secrets.NM_PRIVATE_PYPI_LOCATION }}
username: ${{ secrets.NM_PRIVATE_PYPI_USER }}
password: ${{ secrets.NM_PRIVATE_PYPI_AUTH }}

"""

build-container-and-push:
needs: pull-wheel-and-test
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/pull-whl-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
whl:
type: string
required: true
internal:
type: string


jobs:
pull-wheel-and-test:
Expand Down Expand Up @@ -44,4 +47,13 @@ jobs:
- name: Remove src files and run tests
run: |
rm -rf src
make test
make test
- name: Push to internal pypi
if: ${{ inputs.internal == 'true' }}
uses: neuralmagic/nm-actions/actions/nm-upload-whl@upload-pypi
with:
python: '3.10'
server: ${{ secrets.NM_PRIVATE_PYPI_LOCATION }}
username: ${{ secrets.NM_PRIVATE_PYPI_USER }}
password: ${{ secrets.NM_PRIVATE_PYPI_AUTH }}

0 comments on commit d94a4d3

Please sign in to comment.