@@ -18,33 +18,67 @@ SED = sed -i '' -e
1818endif
1919
2020
21- .PHONY : gen-python
21+ .PHONY : gen-python gen-cpp gen-js gen-jupyter gen-rust
2222gen-python : # # regenerate the python template from scratch
2323 mkdir -p ../python-template && cd ../python-template && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes
2424 copier copy -w . ../python-template --data-file examples/python.yml
2525 cd ../python-template && $(SED ) ' s#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml
2626
27- .PHONY : gen-cpp
2827gen-cpp : # # regenerate the c++ template from scratch
2928 mkdir -p ../python-template-cpp && cd ../python-template-cpp && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes
3029 copier copy -w . ../python-template-cpp --data-file examples/cpp.yml
3130 cd ../python-template-cpp && $(SED ) ' s#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml
3231
33- .PHONY : gen-js
3432gen-js : # # regenerate the js template from scratch
3533 mkdir -p ../python-template-js && cd ../python-template-js && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes
3634 copier copy -w . ../python-template-js --data-file examples/js.yml
3735 cd ../python-template-js && $(SED ) ' s#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml
3836
39- .PHONY : gen-jupyter
4037gen-jupyter : # # regenerate the jupyter template from scratch
4138 mkdir -p ../python-template-jupyter && cd ../python-template-jupyter && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes
4239 copier copy -w . ../python-template-jupyter --data-file examples/jupyter.yml
4340 cd ../python-template-jupyter && $(SED ) ' s#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml
4441
45- .PHONY : gen-rust
4642gen-rust : # # regenerate the rust template from scratch
4743 mkdir -p ../python-template-rust && cd ../python-template-rust && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes
4844 copier copy -w . ../python-template-rust --data-file examples/rust.yml
4945 cd ../python-template-rust && $(SED ) ' s#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml
5046
47+ .PHONY : test-python test-cpp test-js test-jupyter test-rust
48+ test-python :
49+ cd ../python-template && git config --global user.name " github-actions" && git config --global user.email " 41898282+github-actions[bot]@users.noreply.github.c@example.com" && git init && git add . && git commit -m " initial commit"
50+ cd ../python-template && make develop
51+ cd ../python-template && make lint
52+ cd ../python-template && make checks
53+ cd ../python-template && make test
54+
55+ test-cpp :
56+ cd ../python-template-cpp && git config --global user.name " github-actions" && git config --global user.email " 41898282+github-actions[bot]@users.noreply.github.c@example.com" && git init && git add . && git commit -m " initial commit"
57+ cd ../python-template-cpp && git init && git add . && git commit -m " initial commit"
58+ cd ../python-template-cpp && make develop
59+ cd ../python-template-cpp && make lint
60+ cd ../python-template-cpp && make checks
61+ cd ../python-template-cpp && make test
62+
63+ test-js :
64+ cd ../python-template-js && git config --global user.name " github-actions" && git config --global user.email " 41898282+github-actions[bot]@users.noreply.github.c@example.com" && git init && git add . && git commit -m " initial commit"
65+ cd ../python-template-js && make develop
66+ cd ../python-template-js && make lint
67+ cd ../python-template-js && make checks
68+ cd ../python-template-js && make test
69+
70+ test-jupyter :
71+ cd ../python-template-jupyter && git config --global user.name " github-actions" && git config --global user.email " 41898282+github-actions[bot]@users.noreply.github.c@example.com" && git init && git add . && git commit -m " initial commit"
72+ cd ../python-template-jupyter && make develop
73+ cd ../python-template-jupyter && make lint
74+ cd ../python-template-jupyter && make checks
75+ cd ../python-template-jupyter && make test
76+
77+ test-rust :
78+ cd ../python-template-rust && git config --global user.name " github-actions" && git config --global user.email " 41898282+github-actions[bot]@users.noreply.github.c@example.com" && git init && git add . && git commit -m " initial commit"
79+ cd ../python-template-rust && make develop
80+ cd ../python-template-rust && git add Cargo.lock && git commit -m " lockfile"
81+ cd ../python-template-rust && make lint
82+ cd ../python-template-rust && make checks
83+ cd ../python-template-rust && make test
84+
0 commit comments