GitHub Action 中的 Google colab 环境/容器测试

问题描述 投票:0回答:1

我想使用最新的预装 Colab 环境定期测试笔记本电脑?我发现有一个 docker 容器可用的提示:

https://stackoverflow.com/a/76360314/9684872

有我不知道的 docker 镜像的替代品吗?

google-colaboratory
1个回答
0
投票

用于部署的 colab docker 镜像可用于在大型 GitHub 运行器上测试笔记本。因此,使用 docker 镜像似乎是确保与最新部署的 colab 兼容的最佳选择。

由于磁盘空间要求,需要更大的运行器。这需要“手动”将所需的大型运行器添加到 GitHub 组织中。

图像:https://console.cloud.google.com/artifacts/docker/colab-images/europe/public/runtime

name: Test that tutorial runs on latest colab image

on:
  schedule:
    - cron: '0 2 * * 3'

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest-4core # needs to be create manually
    # https://console.cloud.google.com/artifacts/docker/colab-images/europe/public/runtime
    container:
      image: europe-docker.pkg.dev/colab-images/public/runtime:latest
    steps:
      - uses: actions/checkout@v4
      - ...
© www.soinside.com 2019 - 2024. All rights reserved.