-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure local building, added changelog, black following
- Loading branch information
Showing
7 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
name: Latest commit | ||
|
||
env: | ||
CACHE_VERSION: 6 | ||
CACHE_VERSION: 22 | ||
DEFAULT_PYTHON: "3.12" | ||
PRE_COMMIT_HOME: ~/.cache/pre-commit | ||
|
||
|
@@ -22,7 +22,7 @@ jobs: | |
name: Prepare | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
|
@@ -48,8 +48,9 @@ jobs: | |
pip install virtualenv --upgrade | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install -U pip setuptools wheel | ||
pip install -r requirements_test.txt -r requirements_commit.txt | ||
pip install uv | ||
uv pip install -U pip setuptools wheel | ||
uv pip install -r requirements_test.txt -r requirements_commit.txt | ||
- name: Restore pre-commit environment from cache | ||
id: cache-precommit | ||
uses: actions/cache@v4 | ||
|
@@ -71,7 +72,7 @@ jobs: | |
needs: prepare | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
|
@@ -97,7 +98,7 @@ jobs: | |
- name: Ruff (check) | ||
run: | | ||
. venv/bin/activate | ||
#ruff plugwise_usb/*py tests/*py | ||
#ruff check plugwise_usb/*py tests/*py | ||
echo "***" | ||
echo "***" | ||
echo "Code is not up to par for ruff, skipping" | ||
|
@@ -107,7 +108,7 @@ jobs: | |
if: failure() | ||
run: | | ||
. venv/bin/activate | ||
ruff --fix plugwise_usb/*py tests/*py | ||
ruff check --fix plugwise_usb/*py tests/*py | ||
git config --global user.name 'autoruff' | ||
git config --global user.email '[email protected]' | ||
git remote set-url origin https://x-access-token:${{ secrets.PAT_CT }}@github.com/$GITHUB_REPOSITORY | ||
|
@@ -124,7 +125,7 @@ jobs: | |
- dependencies_check | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
|
@@ -175,7 +176,7 @@ jobs: | |
python-version: ["3.12", "3.11", "3.10"] | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
|
@@ -199,11 +200,12 @@ jobs: | |
run: | | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install -U pip setuptools wheel | ||
#pip install -r requirements_test.txt | ||
pip install uv | ||
uv pip install -U pip setuptools wheel | ||
uv #pip install -r requirements_test.txt | ||
# 20220124 Mimic setup_test.sh | ||
pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt | ||
pip install --upgrade pytest-asyncio | ||
uv pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt | ||
uv pip install --upgrade pytest-asyncio | ||
pytest: | ||
runs-on: ubuntu-latest | ||
|
@@ -215,7 +217,7 @@ jobs: | |
|
||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
|
@@ -251,7 +253,7 @@ jobs: | |
needs: pytest | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
|
@@ -291,7 +293,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Run ShellCheck | ||
uses: ludeeus/action-shellcheck@master | ||
|
||
|
@@ -301,7 +303,7 @@ jobs: | |
name: Dependency | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Run dependency checker | ||
run: scripts/dependencies_check.sh debug | ||
|
||
|
@@ -311,7 +313,7 @@ jobs: | |
needs: pytest | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
|
@@ -356,7 +358,7 @@ jobs: | |
needs: [coverage, mypy] | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
|
@@ -399,7 +401,7 @@ jobs: | |
needs: coverage | ||
steps: | ||
- name: Check out committed code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/setup-python@v5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters