[GH-ISSUE #100] Action Version not being honored 2 #66

Closed
opened 2026-03-01 21:39:41 +03:00 by kerem · 0 comments
Owner

Originally created by @mced on GitHub (Feb 25, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/100

@cplee Am I missing something ?

$ cat .github/workflows/ci.yml
name: CI

on: [push]

jobs:
  linter:
    name: "Linting Python Code"

    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v1.1.1
      with:
        python-version: 3.7

    - run: python -c "import sys; print(sys.version)"

When building from v0.2.3 (and github.com/nektos/act@e371fa8c49) I have:

$ ./act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 -j linter
[CI/Linting Python Code] ⭐  Run actions/checkout@v2
[CI/Linting Python Code]   ✅  Success - actions/checkout@v2
[CI/Linting Python Code] ⭐  Run actions/setup-python@v1.1.1
[CI/Linting Python Code]   ☁  git clone 'https://github.com/actions/setup-python' # ref=v1.1.1
[CI/Linting Python Code]   🐳  docker pull node:12-alpine
[CI/Linting Python Code]   🐳  docker run image=node:12-alpine entrypoint=[] cmd=["node" "/github/home//setup-python264879224/lib/setup-python.js"]
| ##[debug]Semantic version spec of 3.7 is 3.7
| ##[debug]isExplicit: 
| ##[debug]explicit? false
| ##[debug]evaluating 0 versions
| ##[debug]match not found
| ##[error]Version 3.7 with arch x64 not found%!A(MISSING)Available versions:%!A(MISSING)%!A(MISSING)
[CI/Linting Python Code]   ❌  Failure - actions/setup-python@v1.1.1
Error: exit with `FAILURE`: 1

When building from v0.2.1 I have:

./act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 -j linter
[CI/Linting Python Code] ⭐  Run actions/checkout@v2
[CI/Linting Python Code]   ✅  Success - actions/checkout@v2
[CI/Linting Python Code] ⭐  Run actions/setup-python@v1.1.1
[CI/Linting Python Code]   ☁  git clone 'https://github.com/actions/setup-python' # ref=v1.1.1
[CI/Linting Python Code]   🐳  docker pull node:12-alpine
[CI/Linting Python Code]   🐳  docker run image=node:12-alpine entrypoint=[] cmd=["node" "/github/home//setup-python912338074/lib/setup-python.js"]
| internal/modules/cjs/loader.js:985
|   throw err;
|   ^
| 
| Error: Cannot find module '/github/home/setup-python912338074/lib/setup-python.js'
|     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
|     at Function.Module._load (internal/modules/cjs/loader.js:864:27)
|     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
|     at internal/main/run_main_module.js:18:47 {
|   code: 'MODULE_NOT_FOUND',
|   requireStack: []
| }
[CI/Linting Python Code]   ❌  Failure - actions/setup-python@v1.1.1
Error: exit with `FAILURE`: 1

Originally posted by @mced in https://github.com/nektos/act/issues/90#issuecomment-590528264

Originally created by @mced on GitHub (Feb 25, 2020). Original GitHub issue: https://github.com/nektos/act/issues/100 @cplee Am I missing something ? ``` $ cat .github/workflows/ci.yml name: CI on: [push] jobs: linter: name: "Linting Python Code" runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v1.1.1 with: python-version: 3.7 - run: python -c "import sys; print(sys.version)" ``` When building from `v0.2.3` (and https://github.com/nektos/act/commit/e371fa8c49266958f1cb5c0bf53d4170e662c252) I have: ``` $ ./act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 -j linter [CI/Linting Python Code] ⭐ Run actions/checkout@v2 [CI/Linting Python Code] ✅ Success - actions/checkout@v2 [CI/Linting Python Code] ⭐ Run actions/setup-python@v1.1.1 [CI/Linting Python Code] ☁ git clone 'https://github.com/actions/setup-python' # ref=v1.1.1 [CI/Linting Python Code] 🐳 docker pull node:12-alpine [CI/Linting Python Code] 🐳 docker run image=node:12-alpine entrypoint=[] cmd=["node" "/github/home//setup-python264879224/lib/setup-python.js"] | ##[debug]Semantic version spec of 3.7 is 3.7 | ##[debug]isExplicit: | ##[debug]explicit? false | ##[debug]evaluating 0 versions | ##[debug]match not found | ##[error]Version 3.7 with arch x64 not found%!A(MISSING)Available versions:%!A(MISSING)%!A(MISSING) [CI/Linting Python Code] ❌ Failure - actions/setup-python@v1.1.1 Error: exit with `FAILURE`: 1 ``` When building from `v0.2.1` I have: ``` ./act -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04 -j linter [CI/Linting Python Code] ⭐ Run actions/checkout@v2 [CI/Linting Python Code] ✅ Success - actions/checkout@v2 [CI/Linting Python Code] ⭐ Run actions/setup-python@v1.1.1 [CI/Linting Python Code] ☁ git clone 'https://github.com/actions/setup-python' # ref=v1.1.1 [CI/Linting Python Code] 🐳 docker pull node:12-alpine [CI/Linting Python Code] 🐳 docker run image=node:12-alpine entrypoint=[] cmd=["node" "/github/home//setup-python912338074/lib/setup-python.js"] | internal/modules/cjs/loader.js:985 | throw err; | ^ | | Error: Cannot find module '/github/home/setup-python912338074/lib/setup-python.js' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) | at Function.Module._load (internal/modules/cjs/loader.js:864:27) | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) | at internal/main/run_main_module.js:18:47 { | code: 'MODULE_NOT_FOUND', | requireStack: [] | } [CI/Linting Python Code] ❌ Failure - actions/setup-python@v1.1.1 Error: exit with `FAILURE`: 1 ``` _Originally posted by @mced in https://github.com/nektos/act/issues/90#issuecomment-590528264_
kerem closed this issue 2026-03-01 21:39:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#66
No description provided.