From 6d7e4a2e5efed9b1f20b0ecca7805fc3032befc6 Mon Sep 17 00:00:00 2001 From: David Bernazal Date: Mon, 30 Jun 2025 09:09:22 -0500 Subject: [PATCH] Address PR #261 feedback: Add Elixir CI support and fix codespell error - Add Elixir/Erlang setup to pytest.yml using erlef/setup-beam@v1 - Configure Elixir 1.18.4 and OTP 26.1 for CI compatibility - Fix codespell false positive for '*cripts' glob pattern with ignore comment - Resolves CI test failures for Elixir language server integration --- .github/workflows/pytest.yml | 5 +++++ test/solidlsp/elixir/test_elixir_ignored_dirs.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 14f3813..9c647d6 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -35,6 +35,11 @@ jobs: - name: Install gopls shell: bash run: go install golang.org/x/tools/gopls@latest + - name: Set up Elixir + uses: erlef/setup-beam@v1 + with: + elixir-version: '1.18.4' + otp-version: '26.1' - name: Prepare java uses: actions/setup-java@v3 with: diff --git a/test/solidlsp/elixir/test_elixir_ignored_dirs.py b/test/solidlsp/elixir/test_elixir_ignored_dirs.py index 5a77317..2e51ec2 100644 --- a/test/solidlsp/elixir/test_elixir_ignored_dirs.py +++ b/test/solidlsp/elixir/test_elixir_ignored_dirs.py @@ -65,7 +65,7 @@ def test_find_references_ignores_dir(ls_with_ignored_dirs: SolidLanguageServer): @pytest.mark.parametrize("repo_path", [Language.ELIXIR], indirect=True) def test_refs_and_symbols_with_glob_patterns(repo_path: Path) -> None: """Tests that refs and symbols with glob patterns are ignored.""" - ignored_paths = ["*cripts", "ignored_*"] + ignored_paths = ["*cripts", "ignored_*"] # codespell:ignore cripts ls = create_ls(ignored_paths=ignored_paths, repo_path=str(repo_path), language=Language.ELIXIR) ls.start()