From 0c5e2a32ed0bb1838a59578d584c73e0ffc45289 Mon Sep 17 00:00:00 2001 From: jbloom Date: Mon, 7 Oct 2024 20:16:09 -0700 Subject: [PATCH] update GH for Node20 and v4 actions --- .github/workflows/test_code.yaml | 9 ++++++--- .github/workflows/test_pr.yaml | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_code.yaml b/.github/workflows/test_code.yaml index 5485f00..5a15fa8 100644 --- a/.github/workflows/test_code.yaml +++ b/.github/workflows/test_code.yaml @@ -11,18 +11,21 @@ jobs: permissions: pull-requests: write steps: + - uses: actions/setup-node@v4 + with: + node-version: '20' - uses: actions/setup-python@v4 with: python-version: "3.10" - name: Checkout branch being tested - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 submodules: true clean: false - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -37,7 +40,7 @@ jobs: run: | pytest --cache-clear --cov=tdtax > pytest-coverage.txt - name: Upload logs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ !env.ACT }} with: name: logs diff --git a/.github/workflows/test_pr.yaml b/.github/workflows/test_pr.yaml index f9168c6..c772199 100644 --- a/.github/workflows/test_pr.yaml +++ b/.github/workflows/test_pr.yaml @@ -10,18 +10,21 @@ jobs: permissions: pull-requests: write steps: + - uses: actions/setup-node@v4 + with: + node-version: '20' - uses: actions/setup-python@v4 with: python-version: "3.10" - name: Checkout branch being tested - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 submodules: true clean: false - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/pip @@ -36,7 +39,7 @@ jobs: run: | pytest --cache-clear --cov=tdtax > pytest-coverage.txt - name: Upload logs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ !env.ACT }} with: name: logs