Skip to content

Commit

Permalink
tmp2
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Rogozhkin <[email protected]>
  • Loading branch information
dvrogozh committed Jan 8, 2025
1 parent d46ee3a commit b728584
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/print-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ inputs:
default: ''
description: "Space separated list of PyPi packages to evaluate"

runs
runs:
using: composite
steps:
- name: Print environment
if: ${{ ! cancelled() }}
shell: bash
run: |
if [ -n "${{ inputs.conda }}" ]; then
source activate ${{ inputs.conda }}
Expand All @@ -33,7 +33,8 @@ runs
echo "| jobs.$GITHUB_JOB.versions.os | $(source /etc/os-release && echo $VERSION_ID) |"
echo "| jobs.$GITHUB_JOB.versions.linux-kernel | $(uname -r) |"
echo "| jobs.$GITHUB_JOB.versions.python | $(python --version | cut -f2 -d' ') |"
packages=" \
packages="${{ inputs.os_packages}}"
packages+=" \
level-zero \
libigc1 \
libigc2 \
Expand All @@ -42,17 +43,16 @@ runs
intel-i915-dkms \
intel-level-zero-gpu \
intel-opencl-icd"
packages+="${{ inputs.os_packages}}"
for package in $packages; do
package_version=$(dpkg -l | grep $package | grep ii | head -1 | sed "s/ */ /g" | cut -f3 -d" ")
package_version="$(dpkg -l | grep $package | grep ii | head -1 | sed 's/ */ /g' | cut -f3 -d" " || true)"
echo "| jobs.$GITHUB_JOB.versions.$package | $package_version |"
done
packages=" \
packages="${{ inputs.pip_packages}}"
packages+=" \
numpy \
torch \
torchaudio \
torchvision"
packages+="${{ inputs.pip_packages}}"
for package in $packages; do
package_version=$(python -c "import $package; print($package.__version__)" || true)
echo "| jobs.$GITHUB_JOB.versions.$package | $package_version |"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_linux_accelerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
paths:
- '.github/scripts/spec.py'
- '.github/actions/print-environment/action.yml'
- '.github/workflows/_linux_accelerate.yml'
workflow_dispatch:
inputs:
Expand Down

0 comments on commit b728584

Please sign in to comment.