File tree Expand file tree Collapse file tree
{{cookiecutter.package_name}}/.github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 "include_github_actions" : [
1818 " no" ,
1919 " ci" ,
20- " cd"
20+ " ci+ cd"
2121 ]
2222}
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ def test_cookiecutter_all_options(
4444 assert num_items (path , ["docs" ]) == 9
4545 print (f"Checking pair: { open_source_license } , { include_github_actions } " )
4646 if open_source_license == "None" :
47- if include_github_actions in ["ci" , "cd" ]:
47+ if include_github_actions in ["ci" , "ci+ cd" ]:
4848 assert num_items (path , [".github" , "workflows" ]) == 1
4949 assert num_items (path ) == 11
5050 else :
5151 assert num_items (path ) == 10
5252 else :
53- if include_github_actions in ["ci" , "cd" ]:
53+ if include_github_actions in ["ci" , "ci+ cd" ]:
5454 assert num_items (path , [".github" , "workflows" ]) == 1
5555 assert num_items (path ) == 12
5656 else :
Original file line number Diff line number Diff 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
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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments