diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b9b7614..9033f3e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1 @@ * @iMicknl -* @arunpoudel \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..8209473 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ["https://paypal.me/imick"] diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a782f40 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + - package-ecosystem: pip + directory: "/" + schedule: + interval: "daily" + time: "08:00" + open-pull-requests-limit: 10 + + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: "daily" + time: "08:00" + open-pull-requests-limit: 10 diff --git a/.github/workflows/matchers/python.json b/.github/workflows/matchers/python.json deleted file mode 100644 index 1052a1c..0000000 --- a/.github/workflows/matchers/python.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "python", - "pattern": [ - { - "regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$", - "file": 1, - "line": 2 - }, - { - "regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$", - "message": 2 - } - ] - } - ] -} \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e260e45..a0683aa 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -3,7 +3,7 @@ name: Release Drafter on: push: branches: - - master + - main jobs: update_release_draft: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 55df554..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Test (pytest) - -on: - pull_request: - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11", "3.12"] - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements_test.txt - - name: Register Python problem matcher - run: | - echo "::add-matcher::.github/workflows/matchers/python.json" - # - name: Install Pytest Annotation plugin - # run: | - # # Ideally this should be part of our dependencies - # # However this plugin is fairly new and doesn't run correctly - # # on a non-GitHub environment. - # pip install pytest-github-actions-annotate-failures - # - name: Test with pytest - # run: | - # pytest \ - # --cov custom_components/sagemcom_fast \ - # --cov-report=xml --cov-report=html \ - # -o console_output_style=count \ - # -p no:sugar \ - # tests - # - name: Upload coverage artifact - # uses: actions/upload-artifact@v2.1.3 - # with: - # name: coverage-${{ matrix.python-version }} - # path: htmlcov diff --git a/README.md b/README.md index eb07dc1..a2d131f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![screenshot of a device detail page in Home Assistant](https://raw.githubusercontent.com/iMicknl/ha-sagemcom-fast/master/media/sagemcom_fast_device_page.png) +![screenshot of a device detail page in Home Assistant](https://raw.githubusercontent.com/iMicknl/ha-sagemcom-fast/main/media/sagemcom_fast_device_page.png) [![GitHub release](https://img.shields.io/github/release/iMicknl/ha-sagemcom-fast.svg)](https://github.com/iMicknl/ha-sagemcom-fast/releases/) [![HA integration usage](https://img.shields.io/badge/dynamic/json?color=41BDF5&logo=home-assistant&label=integration%20usage&suffix=%20installs&cacheSeconds=15600&url=https://analytics.home-assistant.io/custom_integrations.json&query=$.sagemcom_fast.total)](https://analytics.home-assistant.io/custom_integrations.json) diff --git a/requirements_test.txt b/requirements_test.txt deleted file mode 100644 index 509105c..0000000 --- a/requirements_test.txt +++ /dev/null @@ -1,6 +0,0 @@ --r requirements_dev.txt - -pytest==7.3.1 -pytest-socket==0.6.0 -pytest-homeassistant-custom-component==0.13.51 # 2023.8.2 -pytest-timeout==2.1.0 \ No newline at end of file