Skip to content

Commit 7cfe3f3

Browse files
correct yaml
1 parent f6fb03a commit 7cfe3f3

3 files changed

Lines changed: 2 additions & 13 deletions

File tree

.github/workflows/python_unit_tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ jobs:
3232
env:
3333
RUNNING_GH_ACTION: True
3434
run: |
35+
git config --global user.name 'Testing'
36+
git config --global user.email 'Testing'
3537
pytest -vv

github_scripts/tests/test_get_git_sources.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
merge_source,
2525
)
2626

27-
# Check if running in an action and setup git if so
28-
if os.getenv("RUNNING_GH_ACTION", "False") == "True":
29-
subprocess.run(split("git config --global user.email 'Testing'"))
30-
subprocess.run(split("git config --global user.name 'Testing'"))
31-
32-
3327
@pytest.fixture(scope="session")
3428
def setup_sources(tmpdir_factory):
3529
"""

github_scripts/tests/test_git_bdiff.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@
1111
import os
1212
import subprocess
1313
import pytest
14-
from shlex import split
1514

1615
from ..git_bdiff import GitBDiff, GitBDiffError, GitBDiffNotGit, GitInfo, GitBase
1716

1817

1918
# Disable warnings caused by the use of pytest fixtures
2019
# pylint: disable=redefined-outer-name
2120

22-
# Check if running in an action and setup git if so
23-
if os.getenv("RUNNING_GH_ACTION", "False") == "True":
24-
raise Exception("FROM HERE")
25-
subprocess.run(split("git config --global user.email 'Testing'"), check=True)
26-
subprocess.run(split("git config --global user.name 'Testing'"), check=True)
27-
2821

2922
def add_to_repo(start, end, message, mode="wt"):
3023
"""Add and commit dummy files to a repo."""

0 commit comments

Comments
 (0)