From 3de5da604705ae6c3f8131c0aad13ce64f81e2bc Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Mon, 28 Apr 2025 15:50:12 +0200 Subject: [PATCH] GH: install gopls before tests --- .github/workflows/pytest.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1b036c3..98fd164 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,8 +16,14 @@ jobs: with: python-version: "${{ matrix.python-version }}" - # Include the appropriate package manager steps based on the selection - + # Add Go bin directory to PATH for this workflow + # GITHUB_PATH is a special file that GitHub Actions uses to modify PATH + # Writing to this file adds the directory to the PATH for subsequent steps + - name: Install gopls + run: | + go install golang.org/x/tools/gopls@latest + echo "$HOME/go/bin" >> $GITHUB_PATH + - name: Install uv run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Create virtual environment