Skip to content

Commit

Permalink
Add version number to config for ci runs
Browse files Browse the repository at this point in the history
  • Loading branch information
n-wbrown committed Nov 20, 2023
1 parent 21ad11d commit 91f9c31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/cookiecutter-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
strategy:
matrix:
config_file: [ default_config.yaml, complex_config.yaml]
python_version: [ "3.6", "3.7", "3.8", "3.9", "3.10"]
python_version: [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]


steps:
Expand Down Expand Up @@ -70,6 +70,10 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "PCDS / GitHub CI"
- name: Append version to config
run: |
echo '\n python_version: "${{ matrix.python_version }}" ' >> tests/${{ matrix.config_file }}
- name: Use the cookiecutter
run: |
cookiecutter . --no-input --config-file tests/${{ matrix.config_file }} --output-dir "$HOME"
Expand Down
2 changes: 1 addition & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"github_repo_group": "pcdshub",
"import_name": "{{ cookiecutter.folder_name }}",
"description": "A short description of the project.",
"python_version": ["3.12", "3.11", "3.10", "3.9", "3.8", "3.7", "3.6", "3.5", "3.4"],
"python_version": ["3.11", "3.10", "3.9", "3.8", "3.7", "3.6"],
"auto_git_setup": ["no", "yes"],
"git_remote_name": "origin",
"readme_format": ["md", "rst"],
Expand Down
3 changes: 2 additions & 1 deletion tests/default_config.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
default_context:
default_context:
hello there "dog"

0 comments on commit 91f9c31

Please sign in to comment.