generated from pdm-project/pdm
-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(gitconfig): use
pytrest-gitconfig
to avoid run environment git…
… setting side-effects
- Loading branch information
1 parent
d5d5c23
commit 4f088e7
Showing
3 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
cache: "pip" | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install -U pip pytest setuptools editables | ||
python -m pip install -U pip pytest setuptools editables pytest-gitconfig | ||
pip install . | ||
- name: Install Mercurial | ||
shell: bash | ||
|
@@ -59,6 +59,4 @@ jobs: | |
echo "username = \"John Doe <[email protected]>\"" >> ~/.hgrc | ||
- name: Run Tests | ||
run: | | ||
git config --global user.name "John Doe" | ||
git config --global user.email "[email protected]" | ||
pytest -vvv tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,6 @@ def dist(tmp_path: Path) -> Path: | |
@pytest.fixture | ||
def scm(fixture_project: Path) -> None: | ||
subprocess.check_call(["git", "init"]) | ||
subprocess.check_call(["git", "config", "user.email", "[email protected]"]) | ||
subprocess.check_call(["git", "config", "user.name", "Name"]) | ||
subprocess.check_call(["git", "add", "."]) | ||
subprocess.check_call(["git", "commit", "-m", "initial commit"]) | ||
subprocess.check_call(["git", "tag", "-a", "0.1.0", "-m", "version 0.1.0"]) |