From 2b0bd3d50fd1e67bd488a66f9429a5174c4cc99a Mon Sep 17 00:00:00 2001 From: Georges Toth Date: Sun, 3 Nov 2024 22:41:53 +0100 Subject: [PATCH] update workflow --- .github/workflows/test_lint.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_lint.yml b/.github/workflows/test_lint.yml index c81231d..c79fb81 100644 --- a/.github/workflows/test_lint.yml +++ b/.github/workflows/test_lint.yml @@ -25,18 +25,16 @@ jobs: - name: Run tests run: | - python3 -m pip install --upgrade pip - python3 -m pip install --upgrade-strategy eager .[test] - + python3 -m pip install uv + uv sync --extra test + docker run -d --name openhab -p 8080:8080 -e OPENHAB_HTTP_PORT=8080 -v ${{ github.workspace }}/docker/openhab_conf:/openhab/conf "openhab/openhab:latest" - - python3 docker/test_connectivity.py - + uv run docker/test_connectivity.py docker exec -i openhab /openhab/runtime/bin/client -v -p habopen users add admin admin administrator || true - sleep 2 - python3 -m coverage run --omit tests --parallel-mode -m pytest -vv tests + uv run coverage run --omit tests --parallel-mode -m pytest -vv tests + ls -la - name: Upload coverage data uses: actions/upload-artifact@v4