Skip to content

Update pyproject.toml (#258) #56

Update pyproject.toml (#258)

Update pyproject.toml (#258) #56

Workflow file for this run

# --------------------------------------------------------------------------------------
# Part of the interTwin Project: https://www.intertwin.eu/
#
# Created by: Matteo Bunino
#
# Credit:
# - Matteo Bunino <[email protected]> - CERN
# --------------------------------------------------------------------------------------
name: Container CI
on:
push:
branches: [main]
# pull_request:
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Maximize build disk space
uses: easimon/maximize-build-space@v10
with:
# Reserve space on root for docker cache
root-reserve-mb: 35000
overprovision-lvm: true
swap-size-mb: 1024
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true
- name: Checkout
uses: actions/checkout@v4
- name: Get Repo Owner
id: get_repo_owner
run: echo "name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Delete huge unnecessary tools folder and large packages
run: |
rm -rf /opt/hostedtoolcache &&
curl -fsSL https://raw.githubusercontent.com/apache/flink/02d30ace69dc18555a5085eccf70ee884e73a16e/tools/azure-pipelines/free_disk_space.sh | bash
- name: Prepare Environment Variables
run: |
echo "COMMIT_HASH=$(git rev-parse --verify HEAD)" >> "$GITHUB_ENV"
BASE_IMG_NAME=nvcr.io/nvidia/pytorch:24.05-py3
echo "BASE_IMG_NAME=$BASE_IMG_NAME" >> "$GITHUB_ENV"
BASE_IMG_DIGEST=$(docker pull $BASE_IMG_NAME > /dev/null 2>&1 && docker inspect $BASE_IMG_NAME --format='{{index .RepoDigests 0}}')
echo "BASE_IMG_DIGEST=$BASE_IMG_DIGEST" >> "$GITHUB_ENV"
docker system prune -af
- name: Integration Test
uses: dagger/dagger-for-github@v6
with:
workdir: ci
verb: call
args: >-
--name="${{ env.COMMIT_HASH }}-torch"
build-container --context=.. --dockerfile=../env-files/torch/Dockerfile
--build-args="COMMIT_HASH=${{ env.COMMIT_HASH }},BASE_IMG_NAME=${{ env.BASE_IMG_NAME }},BASE_IMG_DIGEST=${{ env.BASE_IMG_DIGEST }}"
test-n-publish --kubeconfig=env:KUBECONFIG_STR --stage=DEV --framework=TORCH
--tag-template='${itwinai_version}-torch${framework_version}-${os_version}'
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "latest"
env:
KUBECONFIG_STR: ${{ secrets.KUBECONFIG_INFN }}