Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
Use checkout@v4 and setup-python@v5.  Remove custom pip caching.
  • Loading branch information
p00ya committed May 19, 2024
1 parent 4cb49f6 commit 48794d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-climbr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48794d7

Please sign in to comment.