Skip to content

Commit 5151fd1

Browse files
authored
chore: Workflow refinement and more generated files handled. (#173)
1 parent e62ad48 commit 5151fd1

File tree

6 files changed

+16
-32
lines changed

6 files changed

+16
-32
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
run: |
3636
git config --global user.name github-actions
3737
git config --global user.email [email protected]
38-
- name: Set up Python ${{ matrix.python-version }}
38+
- name: Set up Python
3939
uses: actions/setup-python@v4
4040
with:
4141
cache: pip
42-
python-version: ${{ matrix.python-version }}
42+
python-version: '3.11'
4343
- run: env | sort
44-
- name: Install copier for template rendering
45-
run: python -m pip install --user copier
44+
- name: Install copier for template rendering using pipx
45+
run: pipx install copier
4646
- name: Generate the project with the default value
4747
run: |
4848
find . -maxdepth 1 | grep -vE "(\.|template|includes|\.git|copier\.yaml)$" | xargs -I {} rm -r {}
@@ -53,13 +53,6 @@ jobs:
5353
- run: git diff
5454
- run: git status --porcelain
5555
- run: test -z "$(git status --porcelain)"
56-
strategy:
57-
matrix:
58-
python-version:
59-
- '3.8'
60-
- '3.9'
61-
- '3.10'
62-
- '3.11'
6356
dependabot:
6457
if: ${{ github.actor == 'dependabot[bot]' }}
6558
permissions:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
.DS_Store
44
.copier-answers.yml
55
Pipfile
6+
docs/changelog.md
67
public
8+
release-notes.md
79

810
# Byte-compiled / optimized / DLL files
911
__pycache__/

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ clean:
3535
.ruff_cache \
3636
Pipfile* \
3737
coverage.xml \
38-
dist
38+
dist \
39+
release-notes.md
3940
find . -name '*.egg-info' -print0 | xargs -0 rm -rf
4041
find . -name '*.pyc' -print0 | xargs -0 rm -f
4142
find . -name '*.swp' -print0 | xargs -0 rm -f

template/.gitignore.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
.copier-answers.yml
66
[%- endif %]
77
Pipfile
8+
docs/changelog.md
89
public
10+
release-notes.md
911

1012
# Byte-compiled / optimized / DLL files
1113
__pycache__/

template/Makefile.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ clean:
3838
.ruff_cache \
3939
Pipfile* \
4040
coverage.xml \
41-
dist
41+
dist \
42+
release-notes.md
4243
find . -name '*.egg-info' -print0 | xargs -0 rm -rf
4344
find . -name '*.pyc' -print0 | xargs -0 rm -f
4445
find . -name '*.swp' -print0 | xargs -0 rm -f

template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/ci.yml.jinja

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ jobs:
4545
run: |
4646
git config --global user.name github-actions
4747
git config --global user.email [email protected]
48-
- name: Set up Python {{ '${{ matrix.python-version }}' }}
48+
- name: Set up Python
4949
uses: actions/setup-python@v4
5050
with:
5151
cache: pip
52-
python-version: {{ '${{ matrix.python-version }}' }}
52+
python-version: '{{ default_py }}'
5353
- run: env | sort
54-
- name: Install copier for template rendering
55-
run: python -m pip install --user copier
54+
- name: Install copier for template rendering using pipx
55+
run: pipx install copier
5656
- name: Generate the project with the default value
5757
run: |
5858
find . -maxdepth 1 | grep -vE "(\.|template|includes|\.git|copier\.yaml)$" | xargs -I {} rm -r {}
@@ -63,21 +63,6 @@ jobs:
6363
- run: git diff
6464
- run: git status --porcelain
6565
- run: test -z "$(git status --porcelain)"
66-
strategy:
67-
matrix:
68-
python-version:
69-
[%- if version_between("3.8", min_py, max_py) %]
70-
- '3.8'
71-
[%- endif %]
72-
[%- if version_between("3.9", min_py, max_py) %]
73-
- '3.9'
74-
[%- endif %]
75-
[%- if version_between("3.10", min_py, max_py) %]
76-
- '3.10'
77-
[%- endif %]
78-
[%- if version_between("3.11", min_py, max_py) %]
79-
- '3.11'
80-
[%- endif %]
8166
[%- endif %]
8267
dependabot:
8368
if: {{ '${{ github.actor == \'dependabot[bot]\' }}' }}

0 commit comments

Comments
 (0)