@@ -72,11 +72,12 @@ jobs:
7272 uses : actions/setup-python@v6
7373 with :
7474 python-version : ${{ env.LATEST_STABLE_PYTHON }}
75+ - name : Install System Deps
76+ run : sudo apt-get update && sudo apt-get install -y pandoc
7577 - name : Run Goldens (Lint/Unit)
7678 run : |
7779 pip install nox
7880 cd packages/gapic-generator
79- # Running the logic from goldens-lint and goldens-unit combined
8081 for pkg in credentials eventarc logging redis; do
8182 nox -f tests/integration/goldens/$pkg/noxfile.py -s format lint unit-${{ env.LATEST_STABLE_PYTHON }}
8283 done
@@ -85,16 +86,29 @@ jobs:
8586 needs : python_config
8687 strategy :
8788 matrix :
88- python : ["3.10", "3.14"] # Reduced matrix for efficiency, or use all_python
89+ python : ["3.10", "3.14"]
8990 runs-on : ubuntu-latest
9091 steps :
9192 - uses : actions/checkout@v5
9293 - name : Set up Python
9394 uses : actions/setup-python@v6
9495 with :
9596 python-version : ${{ matrix.python }}
97+ # This fixes the Pandoc error
98+ - name : Install System Deps & Protoc
99+ run : |
100+ sudo apt-get update && sudo apt-get install -y curl pandoc unzip
101+ sudo mkdir -p /usr/src/protoc/ && sudo chown -R ${USER} /usr/src/
102+ curl --location https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip --output /usr/src/protoc/protoc.zip
103+ cd /usr/src/protoc/ && unzip protoc.zip
104+ sudo ln -s /usr/src/protoc/bin/protoc /usr/local/bin/protoc
96105 - name : Run Tests
97106 run : |
98107 pip install nox
99108 cd packages/gapic-generator
100- nox -s fragment-${{ matrix.python }} snippetgen
109+ # Run fragment for current matrix python
110+ nox -s fragment-${{ matrix.python }}
111+ # Run snippetgen only on the latest stable to avoid the "Python not found" error
112+ if [ "${{ matrix.python }}" == "${{ env.LATEST_STABLE_PYTHON }}" ]; then
113+ nox -s snippetgen
114+ fi
0 commit comments