Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0nx committed Nov 3, 2024
1 parent 2b0bd3d commit 4d85a14
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/test_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Start container
run: |
docker run -d --name openhab -p 8080:8080 -e OPENHAB_HTTP_PORT=8080 -v ${{ github.workspace }}/docker/openhab_conf:/openhab/conf "openhab/openhab:latest"
- name: Run tests
run: |
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"
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
Expand All @@ -39,9 +42,10 @@ jobs:
- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
name: coverage-data
name: coverage-data-${{ matrix.python-version }}
path: .coverage.*
if-no-files-found: ignore
if-no-files-found: error
include-hidden-files: true


coverage:
Expand All @@ -59,7 +63,8 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: coverage-data
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage & create xml report
run: |
Expand All @@ -80,8 +85,7 @@ jobs:
with:
python-version: ${{env.PYTHON_LATEST}}

- run: python -m pip install --upgrade pip wheel
- run: python -m pip install -e .[dev]

- name: mypy
run: mypy --config-file pyproject.toml openhab
- run: |
python3 -m pip install uv
uv sync --extra dev
uv run mypy --config-file pyproject.toml openhab

0 comments on commit 4d85a14

Please sign in to comment.