File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 pull-requests : write
1616 runs-on : ubuntu-latest
1717 steps :
18- - name : Checkout
18+ - name : Checkout repository
1919 uses : actions/checkout@v4
2020 with :
2121 fetch-depth : 0
Original file line number Diff line number Diff line change 99 name : Prepare release asset
1010 runs-on : ubuntu-latest
1111 steps :
12- - name : Check out repository
12+ - name : Checkout repository
1313 uses : actions/checkout@v4
14- - name : " Set manifest version number"
14+ - name : Setup Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : " 3.12"
18+ - name : Set manifest version number
1519 run : |
16- python3 ${{ github.workspace }}/.github/scripts/update_hacs_manifest.py --version ${{ github.ref_name }}
20+ python ${{ github.workspace }}/.github/scripts/update_hacs_manifest.py --version ${{ github.ref_name }}
1721 - name : Create zip
1822 run : |
1923 cd custom_components/tech
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Run Tech API tests
33on :
44 push :
55 schedule :
6- - cron : ' 0 4 * * *'
6+ - cron : " 0 4 * * *"
77 workflow_dispatch :
88
99jobs :
@@ -12,14 +12,15 @@ jobs:
1212 runs-on : ubuntu-latest
1313 strategy :
1414 matrix :
15- python-version : ["3.11 "]
15+ python-version : ["3.12 "]
1616
1717 steps :
1818 - uses : MathRobin/timezone-action@v1.1
1919 with :
2020 timezoneLinux : " Europe/Berlin"
21- - uses : actions/checkout@v4
22- - name : Set up Python ${{ matrix.python-version }}
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+ - name : Setup Python ${{ matrix.python-version }}
2324 uses : actions/setup-python@v5
2425 with :
2526 python-version : ${{ matrix.python-version }}
@@ -30,11 +31,12 @@ jobs:
3031 pip install -r requirements_test_api.txt
3132 - name : Install dependencies
3233 run : pip install pytest pytest-md pytest-emoji
33- - uses : pavelzw/pytest-action@v2
34+ - name : Run tests
35+ uses : pavelzw/pytest-action@v2
3436 with :
3537 emoji : true
3638 verbose : true
3739 job-summary : true
38- custom-arguments : ' tests/tests_api --cov-report=term-missing --cov=custom_components.tech.tech tests/'
40+ custom-arguments : " tests/tests_api --cov-report=term-missing --cov=custom_components.tech.tech tests/"
3941 click-to-expand : true
40- report-title : ' Tech API test report'
42+ report-title : " Tech API test report"
Original file line number Diff line number Diff line change 77 - cron : " 0 0 * * *"
88 workflow_dispatch :
99
10+ permissions :
11+ contents : read
12+
1013jobs :
1114 validate-hassfest :
15+ name : Validate Hassfest
1216 runs-on : " ubuntu-latest"
1317 steps :
14- - uses : " actions/checkout@v4"
15- - uses : home-assistant/actions/hassfest@master
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+ - name : Hassfest validation
21+ uses : home-assistant/actions/hassfest@master
1622 validate-hacs :
23+ name : Validate HACS
1724 runs-on : " ubuntu-latest"
1825 steps :
19- - uses : " actions/checkout@v4"
26+ - name : Checkout repository
27+ uses : actions/checkout@v4
2028 - name : HACS validation
21- uses : " hacs/action@main"
29+ uses : hacs/action@main
2230 with :
2331 category : " integration"
You can’t perform that action at this time.
0 commit comments