Skip to content

Commit d8c68eb

Browse files
authored
Merge pull request #82 from daroga0002/tweaking-CI
Tweaking CI
2 parents e66c859 + a57d8c6 commit d8c68eb

4 files changed

Lines changed: 29 additions & 15 deletions

File tree

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ jobs:
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

.github/workflows/tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Run Tech API tests
33
on:
44
push:
55
schedule:
6-
- cron: '0 4 * * *'
6+
- cron: "0 4 * * *"
77
workflow_dispatch:
88

99
jobs:
@@ -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"

.github/workflows/validate.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,25 @@ on:
77
- cron: "0 0 * * *"
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
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"

0 commit comments

Comments
 (0)