Skip to content

Commit 7a4d3fc

Browse files
authored
Update workflows to actions/setup-python@v5, actions/cache@v4 (#212)
1 parent 5f46c32 commit 7a4d3fc

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
torch-version: 2.4.0
2626
python-version: "3.10"
2727
sklearn-version: "latest"
28-
- os: ubuntu-latest
28+
- os: ubuntu-latest
2929
torch-version: 2.4.0
3030
python-version: "3.10"
3131
sklearn-version: "legacy"
@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
- name: Cache dependencies
3737
id: pip-cache
38-
uses: actions/cache@v3
38+
uses: actions/cache@v4
3939
with:
4040
path: ~/.cache/pip
4141
key: pip-os_${{ runner.os }}-python_${{ matrix.python-version }}-torch_${{ matrix.torch-version }}-sklearn_${{ matrix.sklearn-version }}
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@v2
4545

4646
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v4
47+
uses: actions/setup-python@v5
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050

@@ -54,7 +54,7 @@ jobs:
5454
python -m pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
5555
pip install '.[dev,datasets,integrations]'
5656
57-
- name: Check sklearn legacy version
57+
- name: Check sklearn legacy version
5858
if: matrix.sklearn-version == 'legacy'
5959
run: |
6060
pip install scikit-learn==1.4.2 '.[dev,datasets,integrations]'

.github/workflows/doc-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
python-version: ['3.8']
25+
python-version: ['3.9']
2626

2727
steps:
2828
# NOTE(stes) currently not used, we check
@@ -31,14 +31,14 @@ jobs:
3131
# with:
3232
# ref: main
3333
- uses: actions/checkout@v3
34-
- uses: actions/cache@v1
34+
- uses: actions/cache@v4
3535
with:
3636
path: ~/.cache/pip
3737
key: ${{ runner.os }}-pip
3838
restore-keys: |
3939
${{ runner.os }}-pip
4040
- name: Set up Python ${{ matrix.python-version }}
41-
uses: actions/setup-python@v1
41+
uses: actions/setup-python@v5
4242
with:
4343
python-version: ${{ matrix.python-version }}
4444
- name: Install package

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- name: Cache dependencies
1919
id: pip-cache
20-
uses: actions/cache@v3
20+
uses: actions/cache@v4
2121
with:
2222
path: ~/.cache/pip
2323
key: ${{ runner.os }}-pip
@@ -52,20 +52,20 @@ jobs:
5252
ref: main
5353

5454
- name: Set up Python ${{ matrix.python-version }}
55-
uses: actions/setup-python@v2
55+
uses: actions/setup-python@v5
5656
with:
5757
python-version: ${{ matrix.python-version }}
5858

5959
- name: Install package
6060
run: |
6161
python -m pip install --upgrade pip setuptools wheel
6262
# NOTE(stes) Pandoc version must be at least (2.14.2) but less than (4.0.0).
63-
# as of 29/10/23. Ubuntu 22.04 which is used for ubuntu-latest only has an
63+
# as of 29/10/23. Ubuntu 22.04 which is used for ubuntu-latest only has an
6464
# old pandoc version (2.9.). We will hence install the latest version manually.
6565
# previou: sudo apt-get install -y pandoc
66-
wget https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-1-amd64.deb
67-
sudo dpkg -i pandoc-3.1.9-1-amd64.deb
68-
rm pandoc-3.1.9-1-amd64.deb
66+
wget https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-1-amd64.deb
67+
sudo dpkg -i pandoc-3.1.9-1-amd64.deb
68+
rm pandoc-3.1.9-1-amd64.deb
6969
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
7070
pip install '.[docs]'
7171

.github/workflows/release-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- name: Cache dependencies
2525
id: pip-cache
26-
uses: actions/cache@v3
26+
uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/pip
2929
key: ${{ runner.os }}-pip

0 commit comments

Comments
 (0)