From 0c5e2a32ed0bb1838a59578d584c73e0ffc45289 Mon Sep 17 00:00:00 2001 From: jbloom Date: Mon, 7 Oct 2024 20:16:09 -0700 Subject: [PATCH 1/3] 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 From db34d8d565bd82711ee9e7f61d7dc9402acdbbd7 Mon Sep 17 00:00:00 2001 From: jbloom Date: Mon, 7 Oct 2024 20:24:23 -0700 Subject: [PATCH 2/3] bump python action to v5 --- .github/workflows/test_code.yaml | 5 +---- .github/workflows/test_pr.yaml | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_code.yaml b/.github/workflows/test_code.yaml index 5a15fa8..31cddb1 100644 --- a/.github/workflows/test_code.yaml +++ b/.github/workflows/test_code.yaml @@ -11,10 +11,7 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/setup-node@v4 - with: - node-version: '20' - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" diff --git a/.github/workflows/test_pr.yaml b/.github/workflows/test_pr.yaml index c772199..5e2136f 100644 --- a/.github/workflows/test_pr.yaml +++ b/.github/workflows/test_pr.yaml @@ -10,10 +10,7 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/setup-node@v4 - with: - node-version: '20' - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" From 02b27b49687ba7d895405519b11e792e71c1ecd3 Mon Sep 17 00:00:00 2001 From: jbloom Date: Mon, 7 Oct 2024 20:51:36 -0700 Subject: [PATCH 3/3] change branch on GH --- .github/workflows/test_code.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test_code.yaml b/.github/workflows/test_code.yaml index 31cddb1..c726e10 100644 --- a/.github/workflows/test_code.yaml +++ b/.github/workflows/test_code.yaml @@ -2,8 +2,7 @@ name: Code test on: push: branches: - - master - + - main jobs: test: runs-on: ubuntu-20.04