From d5a3b3f5ec879ac596d70036551a3e716b52656d Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 4 Jan 2022 15:19:28 +0100 Subject: Setup dependabot for github-actions and codespell (#9857) This sets up dependabot to check weekly updates for pip and github-actions dependencies. If it finds an update it will create a PR to update the dependency. More information can be found here It includes the update of: * vmactions/freebsd-vm from 0.1.4 to 0.1.5 * codespell from 2.0.0 to 2.1.0 Also includes spelling fixes found by the latest version of codespell. Includes a dedicated .codespell folder so dependabot can read a requirements.txt file and every files dedicated to codespell can be grouped in the same place Co-Authored-By: Matthieu MOREL Co-Authored-By: MOREL Matthieu --- .github/.codespellrc | 5 ----- .github/dependabot.yml | 15 +++++++++++++++ .github/wordlist.txt | 16 ---------------- .github/workflows/daily.yml | 2 +- .github/workflows/spell-check.yml | 11 +++++++++-- 5 files changed, 25 insertions(+), 24 deletions(-) delete mode 100644 .github/.codespellrc create mode 100644 .github/dependabot.yml delete mode 100644 .github/wordlist.txt (limited to '.github') diff --git a/.github/.codespellrc b/.github/.codespellrc deleted file mode 100644 index 6cc43b26e..000000000 --- a/.github/.codespellrc +++ /dev/null @@ -1,5 +0,0 @@ -[codespell] -quiet-level = 2 -count = -skip = ./deps,./src/crc16_slottable.h,tmp*,./.git,./lcov-html -ignore-words = ./.github/wordlist.txt diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..f00019d2e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +# 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: github-actions + directory: / + schedule: + interval: weekly + - package-ecosystem: pip + directory: /.codespell + schedule: + interval: weekly diff --git a/.github/wordlist.txt b/.github/wordlist.txt deleted file mode 100644 index 88fde5909..000000000 --- a/.github/wordlist.txt +++ /dev/null @@ -1,16 +0,0 @@ -ake -bale -fle -fo -gameboy -mutli -nd -nees -oll -optin -ot -smove -te -tre -cancelability -ist \ No newline at end of file diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 5cc7fbd22..88e31f52a 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -521,7 +521,7 @@ jobs: repository: ${{ env.GITHUB_REPOSITORY }} ref: ${{ env.GITHUB_HEAD_REF }} - name: test - uses: vmactions/freebsd-vm@v0.1.4 + uses: vmactions/freebsd-vm@v0.1.5 with: usesh: true sync: rsync diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 7aaa9ffa8..ac9cf2532 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -18,8 +18,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: pip cache + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: ${{ runner.os }}-pip- + - name: Install prerequisites - run: sudo pip install codespell==2.0.0 + run: sudo pip install -r ./.codespell/requirements.txt - name: Spell check - run: codespell --config=./.github/.codespellrc + run: codespell --config=./.codespell/.codespellrc -- cgit v1.2.1