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/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. 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 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