From 222e126e806d5f9ec6396aec11dd12a6fd101fb9 Mon Sep 17 00:00:00 2001 From: Vincent Moens Date: Tue, 9 Jul 2024 13:13:00 +0100 Subject: [PATCH] [CI] Fix nightly build (#861) --- .github/workflows/nightly_build.yml | 33 ++++++++++++++++------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/nightly_build.yml b/.github/workflows/nightly_build.yml index 75861eb17..4c4bb23ee 100644 --- a/.github/workflows/nightly_build.yml +++ b/.github/workflows/nightly_build.yml @@ -27,6 +27,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +env: + ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16 + ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16 + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true # https://github.com/actions/checkout/issues/1809 + jobs: build-wheel-linux: # Don't run on forked repos. @@ -42,12 +47,10 @@ jobs: ["3.12", "cp312-cp312"], ] cuda_support: [["", "cpu", "cpu"]] - container: pytorch/manylinux-cuda121 + container: pytorch/manylinux-${{ matrix.cuda_support[2] }} steps: - name: Checkout tensordict - uses: actions/checkout@v2 - env: - AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache" + uses: actions/checkout@v3 - name: Install PyTorch nightly run: | export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH" @@ -69,7 +72,7 @@ jobs: python3 -mpip install auditwheel auditwheel show dist/* - name: Upload wheel for the test-wheel job - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: tensordict-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl path: dist/*.whl @@ -92,9 +95,9 @@ jobs: container: pytorch/manylinux-${{ matrix.cuda_support[2] }} steps: - name: Checkout tensordict - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download built wheels - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: tensordict-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl path: /tmp/wheels @@ -128,14 +131,14 @@ jobs: cuda_support: [["", "cpu", "cpu"]] steps: - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python_version[0] }} architecture: x64 env: AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache" - name: Checkout tensordict - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install PyTorch Nightly run: | export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH" @@ -149,7 +152,7 @@ jobs: export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH" python3 -mpip install numpy pytest pillow>=4.1.1 scipy networkx expecttest pyyaml - name: Download built wheels - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: tensordict-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl path: /tmp/wheels @@ -196,7 +199,7 @@ jobs: with: python-version: ${{ matrix.python_version[1] }} - name: Checkout tensordict - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install PyTorch nightly shell: bash run: | @@ -235,7 +238,7 @@ jobs: with: python-version: ${{ matrix.python_version[1] }} - name: Checkout tensordict - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install PyTorch Nightly shell: bash run: | @@ -249,7 +252,7 @@ jobs: run: | python3 -mpip install numpy pytest --no-cache-dir - name: Download built wheels - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: tensordict-win-${{ matrix.python_version[0] }}.whl path: wheels @@ -291,9 +294,9 @@ jobs: ] steps: - name: Checkout tensordict - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download built wheels - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: tensordict-win-${{ matrix.python_version[0] }}.whl path: wheels