Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename actions #6

Merged
merged 3 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/biocsetup/create_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading