Skip to content

Commit

Permalink
Rename GitHub actions (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored Dec 23, 2024
1 parent 6e463a1 commit 359aad2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
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

0 comments on commit 359aad2

Please sign in to comment.