Skip to content

Python versions in github action YAML examples should be type string, not float #16167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const article: PlaygroundArticleT = {
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.6", "3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -265,7 +265,7 @@ const article: PlaygroundArticleT = {
# You can use PyPy versions in python-version.
# For example, pypy2 and pypy3
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -320,12 +320,12 @@ const article: PlaygroundArticleT = {
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9, pypy2, pypy3]
python-version: ["3.6", "3.7", "3.8", "3.9", pypy2, pypy3]
exclude:
- os: macos-latest
python-version: 3.6
python-version: "3.6"
- os: windows-latest
python-version: 3.6
python-version: "3.6"
`,
},
'4': {
Expand Down Expand Up @@ -468,7 +468,7 @@ const article: PlaygroundArticleT = {
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8, 3.9]
python: ["3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2
Expand All @@ -490,15 +490,15 @@ const article: PlaygroundArticleT = {
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.6", "3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2
- name: Setup Python # Set Python version
Expand Down