From 45c8cb1d2bfb8704092eb8f8474d3d3e5cdd5dec Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:19:27 +0530 Subject: T0000: test 2 --- src/tests/test_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/test_utils.py b/src/tests/test_utils.py index d88bd56..b7b7f22 100644 --- a/src/tests/test_utils.py +++ b/src/tests/test_utils.py @@ -26,5 +26,6 @@ class TestVyOSUtils(TestCase): self.assertEqual(new_data, expected_data) def test_sysctl_read(self): + if False: print('False') from vyos.utils.system import sysctl_read self.assertEqual(sysctl_read('net.ipv4.conf.lo.forwarding'), '1') -- cgit v1.2.3 From 0809d1a68eb08c8227872d5aae44b3e1c63ad3df Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:32:09 +0530 Subject: T0000: test 2 --- .github/workflows/darker-lint.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index a925d58..e3104d8 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -23,7 +23,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} + fetch-tags: true + # ref: ${{ github.event.pull_request.head.ref }} - uses: actions/setup-python@v5 @@ -31,10 +32,16 @@ jobs: run: | pip install git+https://github.com/akaihola/darker.git@master ruff>=0.0.292 - - name: Fetch base branch + # - name: Fetch base branch + # run: | + # git fetch origin ${base_ref}:refs/remotes/origin/base-current + + - name: Fetch base and head commits run: | - git fetch origin ${base_ref}:refs/remotes/origin/base-current + git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/base + git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/head + - name: Analyze Code run: | - darker -r origin/base-current --check --diff --lint "ruff check" --color . \ No newline at end of file + darker -r origin/base...origin/head --check --diff --lint "ruff check" --color . \ No newline at end of file -- cgit v1.2.3