1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Python versions in examples should be type string, not float

This commit is contained in:
newmanrs
2022-03-09 18:16:51 -08:00
parent ade67abf25
commit 4f748be951

View File

@@ -225,7 +225,7 @@ const article: PlaygroundArticleT = {
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: [3.6, 3.7, 3.8, 3.9] python-version: ["3.6", "3.7", "3.8", "3.9"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -265,7 +265,7 @@ const article: PlaygroundArticleT = {
# You can use PyPy versions in python-version. # You can use PyPy versions in python-version.
# For example, pypy2 and pypy3 # For example, pypy2 and pypy3
matrix: 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: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -320,12 +320,12 @@ const article: PlaygroundArticleT = {
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] 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: exclude:
- os: macos-latest - os: macos-latest
python-version: 3.6 python-version: "3.6"
- os: windows-latest - os: windows-latest
python-version: 3.6 python-version: "3.6"
`, `,
}, },
'4': { '4': {
@@ -468,7 +468,7 @@ const article: PlaygroundArticleT = {
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python: [3.7, 3.8, 3.9] python: ["3.7", "3.8", "3.9"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -490,15 +490,15 @@ const article: PlaygroundArticleT = {
name: Python package name: Python package
on: [push] on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: [3.6, 3.7, 3.8, 3.9] python-version: ["3.6", "3.7", "3.8", "3.9"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup Python # Set Python version - name: Setup Python # Set Python version