From 48794d7fb1b87758eb126d51020c7f793573b32a Mon Sep 17 00:00:00 2001 From: Dean Scarff Date: Sun, 19 May 2024 12:33:39 +1000 Subject: [PATCH] Update github actions Use checkout@v4 and setup-python@v5. Remove custom pip caching. --- .github/workflows/test-climbr.yml | 2 +- .github/workflows/test.yml | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test-climbr.yml b/.github/workflows/test-climbr.yml index 499b5b4..f2b5128 100644 --- a/.github/workflows/test-climbr.yml +++ b/.github/workflows/test-climbr.yml @@ -47,7 +47,7 @@ jobs: R_REMOTES_NO_ERRORS_FROM_WARNINGS: true TZ: UTC steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: C++ Lint run: | clang-format -n climbr/src/json_utils.cpp diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4797778..7918722 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,19 +38,12 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Configure pip cache - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }} - restore-keys: | - pip-${{ matrix.python-version }}- - pip- + cache: 'pip' - name: Install dependencies run: | pip3 install Cython numpy pytest black mypy setuptools