for this code:
name: Installing Python
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
py-version: ["3.10", "3.11", "3.12"]
runs-on: ${{matrix.os}}
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{matrix.py-version}}
i get:
for this code:
name: Installing Python
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
py-version: ['3.10', '3.11', '3.12']
runs-on: '${{ matrix.os }}'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.py-version }}'
i get this: screenshot
for this code:
name: Installing Python
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
py-version: ['3.10', '3.11', '3.12']
runs-on: '${{ matrix.os }}'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.py-version }}'
gives the previous(2nd) result
but, the solution gives correct results for all
name: Installing Python
'on':
- push
jobs:
build:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- ubuntu-latest
- macos-14
- windows-latest
py-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.py-version }}'
note: every code shown here gives completed job status in the github action page.
my question is, why the lab console can’t detect other types of correct(?) code as a solution? or are there some problem in those code?