From acfef2a3647fadd6b16bd1eb5fede55c09227f19 Mon Sep 17 00:00:00 2001 From: Mustafa Can Tekir Date: Fri, 14 Oct 2022 14:04:18 +0200 Subject: [PATCH 1/4] adds renovate config, removes dependabot --- .github/dependabot.yml | 11 ----------- .github/workflows/renovate_linting.yml | 12 ++++++++++++ renovate.json | 26 ++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 11 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/renovate_linting.yml create mode 100644 renovate.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index cf7a39f..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "pip" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "daily" diff --git a/.github/workflows/renovate_linting.yml b/.github/workflows/renovate_linting.yml new file mode 100644 index 0000000..7ca0dd8 --- /dev/null +++ b/.github/workflows/renovate_linting.yml @@ -0,0 +1,12 @@ +name: Renovate Config Linting +on: [pull_request] + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: 🧼 lint renovate config # Validates changes to renovate.json config file + uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.2 + with: + config_file_path: 'renovate.json' \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..50f5e57 --- /dev/null +++ b/renovate.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "Renovate configuration for little-cheesemonger", + "extends": [ + "config:base", + ":rebaseStalePrs", + ":gitSignOff", + "schedule:earlyMondays" + ], + "enabledManagers": [ + "github-actions", + "docker", + "pip_requirements", + "poetry", + "setup_cfg" + ], + "packageRules": [ + { + "matchPackageNames": "pip_requirements", + "matchFiles": [ + "requirements.txt", + "requirements-test.txt" + ] + } + ] +} \ No newline at end of file From a4b57561bfb7b2cca42028903a3259cec681fc77 Mon Sep 17 00:00:00 2001 From: Mustafa Can Tekir Date: Fri, 14 Oct 2022 14:43:38 +0200 Subject: [PATCH 2/4] increases the codecov action version to fix the pipeline as v1 is no longer supported since February 1, 2022 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0cfa9e..1c1cb03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -127,7 +127,7 @@ jobs: if: ${{ always() }} - name: "Publish coverage results to Codecov" - uses: "codecov/codecov-action@v1.0.13" + uses: "codecov/codecov-action@v3.1.1" with: file: "coverage-${{ matrix.python-version }}.xml" fail_ci_if_error: "true" From 22bb920b443c9ccfe903aabbe5e55efb200bd95a Mon Sep 17 00:00:00 2001 From: Mustafa Can Tekir Date: Fri, 14 Oct 2022 15:04:45 +0200 Subject: [PATCH 3/4] replaces docker manager with dockerfile and removes setup_cfg --- renovate.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/renovate.json b/renovate.json index 50f5e57..239454e 100644 --- a/renovate.json +++ b/renovate.json @@ -9,10 +9,9 @@ ], "enabledManagers": [ "github-actions", - "docker", + "dockerfile", "pip_requirements", - "poetry", - "setup_cfg" + "poetry" ], "packageRules": [ { From a782c1c4485f96c4fae6f2e678d19d1df6fddef8 Mon Sep 17 00:00:00 2001 From: Mustafa Can Tekir Date: Sat, 15 Oct 2022 11:48:14 +0200 Subject: [PATCH 4/4] adds new line at the end of the files --- .github/workflows/renovate_linting.yml | 3 ++- renovate.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/renovate_linting.yml b/.github/workflows/renovate_linting.yml index 7ca0dd8..ce4c54b 100644 --- a/.github/workflows/renovate_linting.yml +++ b/.github/workflows/renovate_linting.yml @@ -9,4 +9,5 @@ jobs: - name: 🧼 lint renovate config # Validates changes to renovate.json config file uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.2 with: - config_file_path: 'renovate.json' \ No newline at end of file + config_file_path: 'renovate.json' + diff --git a/renovate.json b/renovate.json index 239454e..f0b866c 100644 --- a/renovate.json +++ b/renovate.json @@ -22,4 +22,5 @@ ] } ] -} \ No newline at end of file +} +