mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-08-30 04:06:37 +00:00
test: clean up git and artifact warnings (#1244)
* initialize the temporary Git repository in test_workflow_git with --initial-branch=main * avoid Git's default-branch advisory in pytest logs without changing global Git configuration or suppressing stderr * upload generated optimization result artifacts only when the test job fails * use the actual nested tests/testdata/**/new_optimize_result* paths * ignore the no-files case so unrelated test failures do not produce an artifact warning
This commit is contained in:
@@ -339,7 +339,7 @@ def test_bump_dev_version_appends_dev(tmp_path):
|
||||
# --- 4️⃣ Full workflow simulation with git ---
|
||||
def test_workflow_git(tmp_path):
|
||||
# Create git repo
|
||||
subprocess.run(["git", "init"], cwd=tmp_path, check=True)
|
||||
subprocess.run(["git", "init", "--initial-branch=main"], cwd=tmp_path, check=True)
|
||||
subprocess.run(["git", "config", "user.name", "test"], cwd=tmp_path, check=True)
|
||||
subprocess.run(["git", "config", "user.email", "test@test.com"], cwd=tmp_path, check=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user