Skip to content

Commit 44f6ba1

Browse files
committed
fix: remove hard-coded pycounts name in CI/CD files
1 parent e39a93c commit 44f6ba1

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"include_github_actions": [
1818
"no",
1919
"ci",
20-
"cd"
20+
"ci+cd"
2121
]
2222
}

{{cookiecutter.package_name}}/.github/workflows/ci-cd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
- uses: actions/checkout@v2
2222
# Step 4. Install poetry
2323
- uses: snok/install-poetry@v1
24-
# Step 5. Install our pycounts package
24+
# Step 5. Install our package
2525
- name: Install package
2626
run: poetry install
27-
# Step 6. Run tests for pycounts
27+
# Step 6. Run tests for package
2828
- name: Test with pytest
29-
run: poetry run pytest tests/ --cov=pycounts --cov-report=xml
29+
run: poetry run pytest tests/ --cov={{ cookiecutter.package_name }} --cov-report=xml
3030
# Step 7. Use Codecov to track coverage
3131
- uses: codecov/codecov-action@v2
3232
with:
33-
file: ./coverage.xml # coverage report
33+
files: ./coverage.xml # coverage report
3434
fail_ci_if_error: true # terminate workflow if there's an error
3535
# Step 8. Build documentation
3636
- name: Build documentation
@@ -71,7 +71,7 @@ jobs:
7171
pip install \
7272
--index-url https://test.pypi.org/simple/ \
7373
--extra-index-url https://pypi.org/simple \
74-
pycounts
74+
{{ cookiecutter.package_name }}
7575
# Step 7. Publish to PyPI
7676
- uses: pypa/gh-action-pypi-publish@release/v1
7777
with:

{{cookiecutter.package_name}}/.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
- uses: actions/checkout@v2
2222
# Step 4. Install poetry
2323
- uses: snok/install-poetry@v1
24-
# Step 5. Install our pycounts package
24+
# Step 5. Install our package
2525
- name: Install package
2626
run: poetry install
27-
# Step 6. Run tests for pycounts
27+
# Step 6. Run tests for package
2828
- name: Test with pytest
29-
run: poetry run pytest tests/ --cov=pycounts --cov-report=xml
29+
run: poetry run pytest tests/ --cov={{ cookiecutter.package_name }} --cov-report=xml
3030
# Step 7. Use Codecov to track coverage
3131
- uses: codecov/codecov-action@v2
3232
with:
33-
file: ./coverage.xml # coverage report
33+
files: ./coverage.xml # coverage report
3434
fail_ci_if_error: true # terminate workflow if there's an error
3535
# Step 8. Build documentation
3636
- name: Build documentation

0 commit comments

Comments
 (0)