diff options
author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2024-08-29 00:58:34 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-29 00:58:34 +0530 |
commit | 1e6f8064e46a342783147bd6d4413acbce1aea46 (patch) | |
tree | 179c12433adcd5f00bd12d11276418aaabcdd2f2 | |
parent | bf7d771bea464f844e38ca586afbe700c7926ed7 (diff) | |
parent | 695265c6f2d8a3037dd262d815e699571478735b (diff) | |
download | vyos-workflow-test-temp-1e6f8064e46a342783147bd6d4413acbce1aea46.tar.gz vyos-workflow-test-temp-1e6f8064e46a342783147bd6d4413acbce1aea46.zip |
Merge pull request #42 from kumvijaya/current
T0000: prob
-rw-r--r-- | .github/workflows/darker-lint.yml | 19 | ||||
-rw-r--r-- | src/tests/test_dependency_graph.py | 1 |
2 files changed, 14 insertions, 6 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index 07889f0..5709c02 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -24,7 +24,8 @@ jobs: with: fetch-depth: 0 fetch-tags: true - # ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - uses: actions/setup-python@v5 @@ -35,14 +36,20 @@ jobs: # - name: Fetch base branch # run: | # git fetch origin ${base_ref}:refs/remotes/origin/base-current + + # - name: Fetch base branch + # run: | + # git fetch origin ${base_ref}:${base_ref} + - name: Fetch base and head commits run: | - git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/temp-base - git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/temp-head - git branch temp-base refs/remotes/origin/temp-base - git branch temp-head refs/remotes/origin/temp-head + git fetch origin ${{ github.event.pull_request.base.repo.full_name }} ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base + # git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/temp-base + # git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/temp-head + # git branch temp-base refs/remotes/origin/temp-base + # git branch temp-head refs/remotes/origin/temp-head - name: Analyze Code run: | - darker -r temp-base...temp-head --check --diff --lint "ruff check" --color .
\ No newline at end of file + darker -r origin/base --check --diff --lint "ruff check" --color .
\ No newline at end of file diff --git a/src/tests/test_dependency_graph.py b/src/tests/test_dependency_graph.py index 8c96fad..ebb4f5b 100644 --- a/src/tests/test_dependency_graph.py +++ b/src/tests/test_dependency_graph.py @@ -30,6 +30,7 @@ class TestDependencyGraph(TestCase): def test_acyclic(self): + if False: print('False') res = check_dependency_graph(dependency_dir=ddir) if False: print('False') self.assertTrue(res) |