Update ci.yml #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: integration-tests | |
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: | |
# root-reserve-mb: 25000 # Reserve ~25 GBs for docker cache on / location | |
# 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: Integration Test | |
uses: dagger/dagger-for-github@v6 | |
with: | |
workdir: ci | |
verb: call | |
# args: build-container --context=.. --dockerfile=../env-files/torch/Dockerfile publish | |
args: build-container --context=.. --dockerfile=../env-files/torch/Dockerfile test-remote --kubeconfig-str "${{ secrets.KUBECONFIG_INFN }}" | |
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} | |
version: "latest" |