diff options
-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) |