diff --git a/.github/workflows/e2e-cache-freethreaded.yml b/.github/workflows/e2e-cache-freethreaded.yml
index 096892cb3..97cc44bcf 100644
--- a/.github/workflows/e2e-cache-freethreaded.yml
+++ b/.github/workflows/e2e-cache-freethreaded.yml
@@ -33,7 +33,7 @@ jobs:
]
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
@@ -60,7 +60,7 @@ jobs:
]
python-version: [3.13.1t, 3.13.2t, 3.13.5t]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
id: cache-pipenv
uses: ./
@@ -90,7 +90,7 @@ jobs:
]
python-version: [3.13.0, 3.13.1, 3.13.2]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Install poetry
run: pipx install poetry
- name: Init pyproject.toml
@@ -122,7 +122,7 @@ jobs:
]
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
@@ -150,7 +150,7 @@ jobs:
]
python-version: [3.13.1t, 3.13.2t, 3.13.5t]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
id: cache-pipenv
uses: ./
@@ -181,7 +181,7 @@ jobs:
]
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
@@ -209,7 +209,7 @@ jobs:
]
python-version: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml
index 76a8f8c51..1e5dec8c1 100644
--- a/.github/workflows/e2e-cache.yml
+++ b/.github/workflows/e2e-cache.yml
@@ -46,7 +46,7 @@ jobs:
- os: windows-latest
python-version: pypy-3.11-v7.x
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
@@ -85,7 +85,7 @@ jobs:
- os: ubuntu-22.04-arm
python-version: pypy-3.10-v7.x
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
id: cache-pipenv
uses: ./
@@ -140,7 +140,7 @@ jobs:
'3.13'
]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Install poetry
run: pipx install poetry
- name: Init pyproject.toml
@@ -184,7 +184,7 @@ jobs:
- os: windows-latest
python-version: pypy-3.11-v7.x
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
@@ -222,7 +222,7 @@ jobs:
- os: ubuntu-22.04-arm
python-version: pypy-3.11-v7.x
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
id: cache-pipenv
uses: ./
@@ -268,7 +268,7 @@ jobs:
]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
@@ -296,7 +296,7 @@ jobs:
]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python
uses: ./
with:
diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml
index 57c7851e6..84586171f 100644
--- a/.github/workflows/e2e-tests.yml
+++ b/.github/workflows/e2e-tests.yml
@@ -29,7 +29,7 @@ jobs:
]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Run with setup-python 3.9.13
uses: ./
diff --git a/.github/workflows/publish-immutable-actions.yml b/.github/workflows/publish-immutable-actions.yml
index 7c2583479..52c7bc00f 100644
--- a/.github/workflows/publish-immutable-actions.yml
+++ b/.github/workflows/publish-immutable-actions.yml
@@ -14,7 +14,7 @@ jobs:
steps:
- name: Checking out
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Publish
id: publish
uses: actions/publish-immutable-action@v0.0.4
diff --git a/.github/workflows/test-graalpy.yml b/.github/workflows/test-graalpy.yml
index 90841c3b8..eabe0b38f 100644
--- a/.github/workflows/test-graalpy.yml
+++ b/.github/workflows/test-graalpy.yml
@@ -35,7 +35,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.graalpy }}
id: setup-python
@@ -86,7 +86,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.graalpy }}
id: setup-python
@@ -108,7 +108,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup GraalPy and check latest
uses: ./
id: graalpy
diff --git a/.github/workflows/test-pypy.yml b/.github/workflows/test-pypy.yml
index 6433b7c5d..e11ef272d 100644
--- a/.github/workflows/test-pypy.yml
+++ b/.github/workflows/test-pypy.yml
@@ -46,7 +46,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.pypy }}
id: setup-python
@@ -98,7 +98,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.pypy }}
id: setup-python
@@ -150,7 +150,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.pypy }}
id: setup-python
@@ -181,7 +181,7 @@ jobs:
macos-13
]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup PyPy and check latest
uses: ./
with:
@@ -223,7 +223,7 @@ jobs:
macos-13
]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup PyPy and check latest
uses: ./
with:
diff --git a/.github/workflows/test-python-freethreaded.yml b/.github/workflows/test-python-freethreaded.yml
index 94f783e23..d7496dad0 100644
--- a/.github/workflows/test-python-freethreaded.yml
+++ b/.github/workflows/test-python-freethreaded.yml
@@ -33,7 +33,7 @@ jobs:
python: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.python }}
id: setup-python
@@ -70,7 +70,7 @@ jobs:
python: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: echo ${{ matrix.python }} > .python-version
@@ -110,7 +110,7 @@ jobs:
python: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: echo ${{ matrix.python }} > .python-version
@@ -148,7 +148,7 @@ jobs:
python: [3.13.0, 3.13.1, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -189,7 +189,7 @@ jobs:
python: [3.13.0, 3.13.1, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -230,7 +230,7 @@ jobs:
python: [3.13.0t, 3.13.1t, 3.13.2t, 3.14t-dev]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-tool-versions-file ${{ matrix.python }}
run: |
@@ -261,7 +261,7 @@ jobs:
python: [3.13t, 3.14t-dev]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -301,7 +301,7 @@ jobs:
python: [3.13.0t, 3.13.1t, 3.13.2t, 3.14t-dev]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -340,7 +340,7 @@ jobs:
]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python 3.14.0-alpha.6
id: setup-python
@@ -377,7 +377,7 @@ jobs:
]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python 3.14t-dev
id: setup-python
@@ -414,7 +414,7 @@ jobs:
]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python 3.14t
id: setup-python
@@ -453,7 +453,7 @@ jobs:
python: [3.13.0t, 3.13.1t, 3.13.2t]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.python }}
id: setup-python
@@ -485,7 +485,7 @@ jobs:
]
python-version: [3.13t, 3.14t-dev]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python and check latest
id: setup-python
uses: ./
@@ -511,7 +511,7 @@ jobs:
macos-13
]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python and check latest
id: setup-python
uses: ./
@@ -542,7 +542,7 @@ jobs:
python: [3.13.1, 3.13.2, 3.14-dev, 3.14.0-alpha.6]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.python }}
id: setup-python
uses: ./
diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml
index 02a9a99f3..602114edc 100644
--- a/.github/workflows/test-python.yml
+++ b/.github/workflows/test-python.yml
@@ -33,7 +33,7 @@ jobs:
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.python }}
id: setup-python
@@ -77,7 +77,7 @@ jobs:
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: echo ${{ matrix.python }} > .python-version
@@ -124,7 +124,7 @@ jobs:
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: echo ${{ matrix.python }} > .python-version
@@ -169,7 +169,7 @@ jobs:
python: [3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -219,7 +219,7 @@ jobs:
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -272,7 +272,7 @@ jobs:
python: graalpy-24.1.2
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-tool-versions-file ${{ matrix.python }}
run: |
@@ -303,7 +303,7 @@ jobs:
python: [3.9.13, 3.10.11, 3.11.9, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -353,7 +353,7 @@ jobs:
python: [3.9.13, 3.10.11, 3.11.9, 3.13.2]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: build-version-file ${{ matrix.python }}
run: |
@@ -402,7 +402,7 @@ jobs:
]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python 3.14.0-alpha.6
id: setup-python
@@ -445,7 +445,7 @@ jobs:
]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python 3.14-dev
id: setup-python
@@ -482,7 +482,7 @@ jobs:
]
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python 3.14
id: setup-python
@@ -521,7 +521,7 @@ jobs:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: setup-python ${{ matrix.python }}
id: setup-python
@@ -553,7 +553,7 @@ jobs:
]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python and check latest
uses: ./
with:
@@ -585,7 +585,7 @@ jobs:
macos-13
]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Setup Python and check latest
uses: ./
with:
diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js
index 9300df328..0506d4765 100644
--- a/dist/cache-save/index.js
+++ b/dist/cache-save/index.js
@@ -87883,7 +87883,8 @@ function saveCache(packageManager) {
const cachePaths = JSON.parse(cachePathState);
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
if (!isCacheDirectoryExists(cachePaths)) {
- throw new Error(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`);
+ core.warning(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`);
+ return;
}
const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY);
const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY);
diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md
index 188fa9d65..9642392e7 100644
--- a/docs/advanced-usage.md
+++ b/docs/advanced-usage.md
@@ -477,16 +477,16 @@ jobs:
- run: echo '${{ steps.cp313.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
```
-## Environment variables
+### Environment variables
These environment variables become available after setup-python action execution:
-| **Env.variable** | **Description** |
-| ----------- | ----------- |
-| pythonLocation |Contains the absolute path to the folder where the requested version of Python or PyPy is installed|
-| Python_ROOT_DIR | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython |
-| Python2_ROOT_DIR |https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2|
-| Python3_ROOT_DIR |https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3|
+| **Env.variable** | **Description**|
+|----------------------|-------------|
+| `pythonLocation` | Contains the absolute path to the folder where the requested version of Python, PyPy, or GraalPy is installed.
**Executable location by implementation:**
• **CPython** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)
• **PyPy** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)
• **GraalPy** – `$pythonLocation/bin/python` (Linux/macOS)
Note: CPython versions include a symlink or copy of the Python executable at the root, while PyPy and GraalPy retain upstream directory layouts. |
+| `Python_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython |
+| `Python2_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2 |
+| `Python3_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3 |
## Using `update-environment` flag
diff --git a/src/cache-save.ts b/src/cache-save.ts
index 4aec04e4e..abeef2f30 100644
--- a/src/cache-save.ts
+++ b/src/cache-save.ts
@@ -38,11 +38,12 @@ async function saveCache(packageManager: string) {
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
if (!isCacheDirectoryExists(cachePaths)) {
- throw new Error(
+ core.warning(
`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(
', '
)}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`
);
+ return;
}
const primaryKey = core.getState(State.STATE_CACHE_PRIMARY_KEY);