Skip to content

Commit fa1fd9a

Browse files
committed
Update action versions used on CIs
- Also, don't update pip and setuptools because it's not necessary. - And don't use the macos-latest image because tests fail while running the setup-python action.
1 parent 786d8dd commit fa1fd9a

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

.github/workflows/static.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,16 @@ jobs:
1818
OS: 'linux'
1919
timeout-minutes: 2
2020
steps:
21-
- uses: actions/cache@v1
21+
- uses: actions/cache@v4
2222
with:
2323
path: ~/.cache/pip
2424
key: static-pip-${{ hashFiles('setup.py') }}
2525
restore-keys: static-pip-
26-
- uses: actions/checkout@v2
27-
- uses: actions/setup-python@v2
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-python@v5
2828
with:
29-
# TODO: check with Python 3, but need to fix the
30-
# errors first
3129
python-version: '3.8'
3230
architecture: 'x64'
33-
- run: python -m pip install --upgrade pip setuptools
3431
- run: pip install -e .[test]
3532
- name: Pylint checks
3633
run: pylint pylsp_jsonrpc test

.github/workflows/test-linux.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@ jobs:
2323
PYTHON_VERSION: ['3.10', '3.9', '3.8']
2424
timeout-minutes: 10
2525
steps:
26-
- uses: actions/cache@v1
26+
- uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/pip
2929
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }}
3030
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
31-
- uses: actions/checkout@v2
32-
- uses: actions/setup-python@v2
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
3333
with:
3434
python-version: ${{ matrix.PYTHON_VERSION }}
3535
architecture: 'x64'
36-
- run: python -m pip install --upgrade pip setuptools
3736
- run: pip install -e .[all,test]
3837
- run: pytest -v test/
3938
# Enable this if SSH debugging is required

.github/workflows/test-mac.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414
name: Mac Py${{ matrix.PYTHON_VERSION }}
15-
runs-on: macos-latest
15+
runs-on: macos-13
1616
env:
1717
CI: 'true'
1818
OS: 'macos'
@@ -23,17 +23,16 @@ jobs:
2323
PYTHON_VERSION: ['3.10', '3.9', '3.8']
2424
timeout-minutes: 10
2525
steps:
26-
- uses: actions/cache@v1
26+
- uses: actions/cache@v4
2727
with:
2828
path: ~/Library/Caches/pip
2929
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }}
3030
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
31-
- uses: actions/checkout@v2
32-
- uses: actions/setup-python@v2
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
3333
with:
3434
python-version: ${{ matrix.PYTHON_VERSION }}
3535
architecture: 'x64'
36-
- run: python -m pip install --upgrade pip setuptools
3736
- run: pip install -e .[all,test]
3837
- run: pytest -v test/
3938
# Enable this if SSH debugging is required

.github/workflows/test-win.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@ jobs:
2323
PYTHON_VERSION: ['3.10', '3.9', '3.8']
2424
timeout-minutes: 10
2525
steps:
26-
- uses: actions/cache@v1
26+
- uses: actions/cache@v4
2727
with:
2828
path: ~\AppData\Local\pip\Cache
2929
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }}
3030
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
31-
- uses: actions/checkout@v2
32-
- uses: actions/setup-python@v2
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
3333
with:
3434
python-version: ${{ matrix.PYTHON_VERSION }}
3535
architecture: 'x64'
36-
- run: python -m pip install --upgrade pip setuptools
3736
- run: pip install -e .[all,test]
3837
- run: pytest -v test/

0 commit comments

Comments
 (0)