Skip to content

feat: using CUDA 12.6.1 as base; add nvidia-container-images repo as … #9

feat: using CUDA 12.6.1 as base; add nvidia-container-images repo as …

feat: using CUDA 12.6.1 as base; add nvidia-container-images repo as … #9

name: Check Python Packages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
facsimilab-packages:
runs-on: [self-hosted, linux, x64]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Pull Docker image
run: docker pull pranavmishra90/facsimilab-full:latest
- name: Run Facsmilab-Main container and execute script
run: |
docker run --rm -v $(pwd):/home/coder/work -v ~/.gitconfig:/home/coder/.gitconfig --gpus 0 pranavmishra90/facsimilab-main:latest /opt/conda/bin/python testing/main_image.py >> testing/results/main-image.txt
- name: Run Facsmilab-Full container and execute script
run: |
docker run --rm -v $(pwd):/home/coder/work --gpus 0 -e ENV_NAME=facsimilab pranavmishra90/facsimilab-full:latest /opt/conda/envs/facsimilab/bin/python testing/full_image.py >> testing/results/full-image.txt
- name: Write to workflow job summary
run: |
build_version=$(cat docker/image_version.txt)
builder_header="# $build_version "
echo "$builder_header" > testing/results/job_summary.md
cat "## Main Image" >> testing/results/job_summary.md
cat " " >> testing/results/job_summary.md
cat testing/results/main-image.txt >> testing/results/job_summary.md
cat testing/results/full-image.txt >> testing/results/job_summary.md
cat testing/results/job_summary.md >> $GITHUB_STEP_SUMMARY