From 8fd4240101700621934d4e904f4d93ead9702366 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 23 Dec 2024 09:38:27 -0800 Subject: [PATCH 1/3] rename actions --- .github/workflows/{pypi-publish.yml => publish-pypi.yml} | 0 .github/workflows/{pypi-test.yml => run-tests.yml} | 0 src/biocsetup/create_repository.py | 2 +- .../github_workflows/{pypi-publish.yml => publish-pypi.yml} | 0 .../templates/github_workflows/{pypi-test.yml => run-tests.yml} | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{pypi-publish.yml => publish-pypi.yml} (100%) rename .github/workflows/{pypi-test.yml => run-tests.yml} (100%) rename src/biocsetup/templates/github_workflows/{pypi-publish.yml => publish-pypi.yml} (100%) rename src/biocsetup/templates/github_workflows/{pypi-test.yml => run-tests.yml} (100%) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/publish-pypi.yml similarity index 100% rename from .github/workflows/pypi-publish.yml rename to .github/workflows/publish-pypi.yml diff --git a/.github/workflows/pypi-test.yml b/.github/workflows/run-tests.yml similarity index 100% rename from .github/workflows/pypi-test.yml rename to .github/workflows/run-tests.yml diff --git a/src/biocsetup/create_repository.py b/src/biocsetup/create_repository.py index f63b5c8..bd80e26 100644 --- a/src/biocsetup/create_repository.py +++ b/src/biocsetup/create_repository.py @@ -50,7 +50,7 @@ def create_repository( gh_actions_dir = Path(project_path) / ".github" / "workflows" gh_actions_dir.mkdir(parents=True, exist_ok=True) - for workflow in ["pypi-test.yml", "pypi-publish.yml"]: + for workflow in ["run-tests.yml", "publish-pypi.yml"]: src = template_dir / "github_workflows" / workflow dst = gh_actions_dir / workflow shutil.copy2(src, dst) diff --git a/src/biocsetup/templates/github_workflows/pypi-publish.yml b/src/biocsetup/templates/github_workflows/publish-pypi.yml similarity index 100% rename from src/biocsetup/templates/github_workflows/pypi-publish.yml rename to src/biocsetup/templates/github_workflows/publish-pypi.yml diff --git a/src/biocsetup/templates/github_workflows/pypi-test.yml b/src/biocsetup/templates/github_workflows/run-tests.yml similarity index 100% rename from src/biocsetup/templates/github_workflows/pypi-test.yml rename to src/biocsetup/templates/github_workflows/run-tests.yml From e5673ac320633ce4c37f0578a5a3c045491717b9 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 23 Dec 2024 09:39:23 -0800 Subject: [PATCH 2/3] Add changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e59854..96b5c5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Version 0.2.0 + +- Rename github actions to `run-tests` & `publish-pypi`. + ## Version 0.1.1 - 0.1.2 - Minor changes to improve user experience. From 7486ca23a15bdc6f043aa2d0a9355f8a871a0953 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 23 Dec 2024 09:43:27 -0800 Subject: [PATCH 3/3] update tests --- tests/test_create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_create.py b/tests/test_create.py index 2715425..4558fd8 100644 --- a/tests/test_create.py +++ b/tests/test_create.py @@ -33,10 +33,10 @@ def test_create_repository(temp_dir): # Check if GitHub Actions are added assert os.path.exists( - os.path.join(project_path, ".github", "workflows", "pypi-test.yml") + os.path.join(project_path, ".github", "workflows", "run-tests.yml") ) assert os.path.exists( - os.path.join(project_path, ".github", "workflows", "pypi-publish.yml") + os.path.join(project_path, ".github", "workflows", "publish-pypi.yml") ) # Check if pre-commit config is added