diff --git a/.github/actions/nm-install-testmo/action.yml b/.github/actions/nm-install-testmo/action.yml deleted file mode 100644 index 97e836f7e2cd9..0000000000000 --- a/.github/actions/nm-install-testmo/action.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: install testmo cli -description: 'install testmo cli' -runs: - using: composite - steps: - - id: testmo_install - run: | - sudo mkdir -p /usr/local/apps - sudo chown -R $(whoami):$(whoami) /usr/local/apps - export XDG_CONFIG_HOME=/usr/local/apps - cd /usr/local/apps - curl -o- --retry 8 --retry-delay 16 --retry-max-time 600 https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash - export NVM_DIR='/usr/local/apps/nvm' - [ -s "/usr/local/apps/nvm/nvm.sh" ] && \. "/usr/local/apps/nvm/nvm.sh"; \ - nvm install 19; \ - npm install --global --save-prod @testmo/testmo-cli - shell: bash diff --git a/.github/actions/nm-set-python/action.yml b/.github/actions/nm-set-python/action.yml deleted file mode 100644 index 1a3092b735bd3..0000000000000 --- a/.github/actions/nm-set-python/action.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: set python -description: 'sets python version and creates venv for neuralmagic' -inputs: - python: - description: 'python version, e.g. 3.10.12' - required: true - venv: - description: 'name for python virtual environment' - required: true -outputs: - version: - description: "result from 'python --version'" - value: ${{ steps.set_python.outputs.version }} -runs: - using: composite - steps: - - id: set_python - run: | - command -v pyenv - pyenv local ${{ inputs.python }} - COMMIT=${{ github.sha }} - VENV="${{ inputs.venv }}-${COMMIT:0:7}" - pyenv virtualenv --force ${VENV} - source $(pyenv root)/versions/${{ inputs.python }}/envs/${VENV}/bin/activate - VERSION=$(python --version) - echo "version=${VERSION}" >> "$GITHUB_OUTPUT" - shell: bash diff --git a/.github/workflows/nm-build.yml b/.github/workflows/nm-build.yml index 077d0a147f24c..5ac43dd8db1bc 100644 --- a/.github/workflows/nm-build.yml +++ b/.github/workflows/nm-build.yml @@ -98,7 +98,7 @@ jobs: - name: set python id: set_python - uses: ./.github/actions/nm-set-python/ + uses: neuralmagic/nm-actions/actions/set-python@main with: python: ${{ inputs.python }} venv: ${{ env.VENV_BASE }} diff --git a/.github/workflows/nm-test.yml b/.github/workflows/nm-test.yml index 87860bcc356bb..a8b45ccbe61fe 100644 --- a/.github/workflows/nm-test.yml +++ b/.github/workflows/nm-test.yml @@ -94,7 +94,7 @@ jobs: nvcc_threads: 0 - name: install testmo - uses: ./.github/actions/nm-install-testmo/ + uses: neuralmagic/nm-actions/actions/install-testmo@main - name: create testmo run id: create_testmo_run @@ -131,7 +131,7 @@ jobs: - name: run buildkite script run: | cd tests && sudo bash ../.buildkite/download-images.sh - + - name: setenv test skip id: setenv_test_skip uses: ./.github/actions/nm-set-env-test-skip