Skip to content

Commit 11d88ce

Browse files
committed
Add single quotes around Python versions in GitHub Actions workflows
- Add single quotes around all python-version values in YAML files - Ensures proper string formatting in GitHub Actions - Updated files: - .github/workflows/tests.yml: Matrix versions and individual job versions - .github/workflows/ci.yml: Matrix versions - .github/workflows/status.yml: Single version - .github/workflows/release.yml: Single version This follows YAML best practices for string values in GitHub Actions.
1 parent 076a582 commit 11d88ce

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.8, 3.11, 3.12]
14+
python-version: ['3.8', '3.11', '3.12']
1515

1616
steps:
1717
- name: Checkout code

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.11
18+
python-version: '3.11'
1919

2020
- name: Install dependencies
2121
run: |

.github/workflows/status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.11
18+
python-version: '3.11'
1919

2020
- name: Install dependencies
2121
run: |

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
14+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1515

1616
steps:
1717
- name: Checkout code
@@ -62,7 +62,7 @@ jobs:
6262
- name: Set up Python
6363
uses: actions/setup-python@v4
6464
with:
65-
python-version: 3.11
65+
python-version: '3.11'
6666

6767
- name: Install linting tools
6868
run: |
@@ -90,7 +90,7 @@ jobs:
9090
- name: Set up Python
9191
uses: actions/setup-python@v4
9292
with:
93-
python-version: 3.11
93+
python-version: '3.11'
9494

9595
- name: Install security tools
9696
run: |
@@ -117,7 +117,7 @@ jobs:
117117
- name: Set up Python
118118
uses: actions/setup-python@v4
119119
with:
120-
python-version: 3.11
120+
python-version: '3.11'
121121

122122
- name: Install build dependencies
123123
run: |

0 commit comments

Comments
 (0)