From 3909f081b9f7e56d0613e970fa4456251dda8619 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Thu, 2 May 2024 17:30:49 -0700 Subject: [PATCH] [ci] Updates github actions workflow (#30) --- .github/workflows/canary_d2l.yml | 13 ++++++------- .github/workflows/colab.yml | 4 ++-- .github/workflows/pr_notebook.yml | 11 +++++------ 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/canary_d2l.yml b/.github/workflows/canary_d2l.yml index 1b5225c..68aea26 100644 --- a/.github/workflows/canary_d2l.yml +++ b/.github/workflows/canary_d2l.yml @@ -11,17 +11,16 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-13, windows-latest] steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: distribution: 'corretto' - java-version: 11 - - uses: actions/checkout@v3 + java-version: 17 - name: Set up Python3 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install IJava kernel diff --git a/.github/workflows/colab.yml b/.github/workflows/colab.yml index a8f03b6..caf3f2d 100644 --- a/.github/workflows/colab.yml +++ b/.github/workflows/colab.yml @@ -10,9 +10,9 @@ jobs: sync: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python3 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Add colab instruction on notebooks diff --git a/.github/workflows/pr_notebook.yml b/.github/workflows/pr_notebook.yml index 08d761a..1cdabda 100644 --- a/.github/workflows/pr_notebook.yml +++ b/.github/workflows/pr_notebook.yml @@ -30,15 +30,14 @@ jobs: CH14: "word2vec.ipynb approx-training.ipynb word-embedding-dataset.ipynb glove.ipynb subword-embedding.ipynb" REST: "chapter_convolutional-neural-networks chapter_linear-networks utils" steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: distribution: 'corretto' - java-version: 11 - - uses: actions/checkout@v3 + java-version: 17 - name: Set up Python3 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install IJava kernel