From d7a063296fbc67354a3d2d1587e8be4de2dabd8b Mon Sep 17 00:00:00 2001 From: Vladislav Punko Date: Thu, 11 Jul 2024 22:14:43 +0200 Subject: [PATCH] Update the continuous integration service settings --- .github/workflows/hooks.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/hooks.yml diff --git a/.github/workflows/hooks.yml b/.github/workflows/hooks.yml new file mode 100644 index 0000000..c2817a3 --- /dev/null +++ b/.github/workflows/hooks.yml @@ -0,0 +1,25 @@ +name: git hooks + +on: + push: + branches: + - "master" + +jobs: + hooks: + runs-on: ubuntu-latest + + steps: + - name: Step -- 1. + uses: actions/checkout@v4 + + - name: Step -- 2. + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Step -- 3. + run: pip3 install --upgrade pip && pip3 install --no-cache-dir --upgrade pre-commit + + - name: Step -- 4. + run: python3 -m pre_commit run --all-files --config .githooks.yml