Skip to content

Commit bed115a

Browse files
authored
Merge pull request #16167 from newmanrs/main
Python versions in github action YAML examples should be type string, not float
2 parents c99afd0 + e4ad07c commit bed115a

File tree

1 file changed

+10
-10
lines changed
  • components/playground/content/actions/guides/building-and-testing-nodejs-or-python

1 file changed

+10
-10
lines changed

components/playground/content/actions/guides/building-and-testing-nodejs-or-python/python.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const article: PlaygroundArticleT = {
225225
runs-on: ubuntu-latest
226226
strategy:
227227
matrix:
228-
python-version: [3.6, 3.7, 3.8, 3.9]
228+
python-version: ["3.6", "3.7", "3.8", "3.9"]
229229
230230
steps:
231231
- uses: actions/checkout@v2
@@ -265,7 +265,7 @@ const article: PlaygroundArticleT = {
265265
# You can use PyPy versions in python-version.
266266
# For example, pypy2 and pypy3
267267
matrix:
268-
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
268+
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"]
269269
270270
steps:
271271
- uses: actions/checkout@v2
@@ -320,12 +320,12 @@ const article: PlaygroundArticleT = {
320320
strategy:
321321
matrix:
322322
os: [ubuntu-latest, macos-latest, windows-latest]
323-
python-version: [3.6, 3.7, 3.8, 3.9, pypy2, pypy3]
323+
python-version: ["3.6", "3.7", "3.8", "3.9", pypy2, pypy3]
324324
exclude:
325325
- os: macos-latest
326-
python-version: 3.6
326+
python-version: "3.6"
327327
- os: windows-latest
328-
python-version: 3.6
328+
python-version: "3.6"
329329
`,
330330
},
331331
'4': {
@@ -468,7 +468,7 @@ const article: PlaygroundArticleT = {
468468
runs-on: ubuntu-latest
469469
strategy:
470470
matrix:
471-
python: [3.7, 3.8, 3.9]
471+
python: ["3.7", "3.8", "3.9"]
472472
473473
steps:
474474
- uses: actions/checkout@v2
@@ -490,15 +490,15 @@ const article: PlaygroundArticleT = {
490490
name: Python package
491491
492492
on: [push]
493-
493+
494494
jobs:
495495
build:
496-
496+
497497
runs-on: ubuntu-latest
498498
strategy:
499499
matrix:
500-
python-version: [3.6, 3.7, 3.8, 3.9]
501-
500+
python-version: ["3.6", "3.7", "3.8", "3.9"]
501+
502502
steps:
503503
- uses: actions/checkout@v2
504504
- name: Setup Python # Set Python version

0 commit comments

Comments
 (0)