tenseleyflow/dlm-lsp / 0a6ab50

Browse files

CI: install via pip (bypass uv.lock path source)

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
0a6ab50965a37792010fd58a3c3070776a566ef2
Parents
9e4729a
Tree
b4dbc17

1 changed file

StatusFile+-
M .github/workflows/ci.yml 13 7
.github/workflows/ci.ymlmodified
@@ -26,24 +26,30 @@ jobs:
2626
         with:
2727
           version: ${{ env.UV_VERSION }}
2828
 
29
-      - name: Sync dependencies (document-language-model from PyPI)
30
-        run: uv sync --dev --no-sources
29
+      - name: Set up Python
30
+        run: uv python install ${{ env.PYTHON_VERSION }}
31
+
32
+      - name: Create venv and install (from PyPI, no lockfile)
33
+        run: |
34
+          uv venv --python ${{ env.PYTHON_VERSION }}
35
+          uv pip install --no-sources -e .
36
+          uv pip install pytest pytest-cov mypy ruff
3137
 
3238
       - name: Ruff lint
33
-        run: uv run ruff check .
39
+        run: .venv/bin/ruff check .
3440
 
3541
       - name: Ruff format check
36
-        run: uv run ruff format --check .
42
+        run: .venv/bin/ruff format --check .
3743
 
3844
       - name: Mypy
39
-        run: uv run mypy src/dlm_lsp
45
+        run: .venv/bin/mypy src/dlm_lsp
4046
 
4147
       - name: Pytest
42
-        run: uv run pytest tests/ -q
48
+        run: .venv/bin/pytest tests/ -q
4349
 
4450
       - name: Coverage
4551
         run: |
46
-          uv run pytest tests/unit/ \
52
+          .venv/bin/pytest tests/unit/ \
4753
             --cov=src/dlm_lsp \
4854
             --cov-report=term-missing \
4955
             -q