Skip to content

Commit 2dac17a

Browse files
Simplify Python version declaration in CI config
1 parent 9e55885 commit 2dac17a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ jobs:
5454
os:
5555
- ubuntu-latest
5656
- macos-latest
57-
python:
58-
- 3.11
59-
- 3.12
60-
- 3.13
57+
python: ["3.11", "3.12", "3.13"]
6158
steps:
6259
- uses: actions/checkout@v4
6360

@@ -70,7 +67,7 @@ jobs:
7067
run: |
7168
if [ "$RUNNER_OS" = "Linux" ]; then
7269
sudo apt-get update && sudo apt-get install -y protobuf-compiler
73-
else
70+
elif [ "$RUNNER_OS" == "macOS" ]; then
7471
brew install protobuf
7572
fi
7673
@@ -106,7 +103,7 @@ jobs:
106103
run: |
107104
if [ "$RUNNER_OS" = "Linux" ]; then
108105
sudo apt-get update && sudo apt-get install -y protobuf-compiler
109-
else
106+
elif [ "$RUNNER_OS" == "macOS" ]; then
110107
brew install protobuf
111108
fi
112109

0 commit comments

Comments
 (0)