Skip to content

Commit

Permalink
👷 Minor CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Jun 10, 2023
1 parent 7ffe73c commit b9fddf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Install dependencies
run: python3 -m pip install --upgrade pip copier poetry poethepoet
- name: Create default options
run: echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > env.yml
run: echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > .copier-answers.yml

- name: Build example template
run: copier copy gh:ThatXliner/pyt2 . -a env.yml --defaults
run: copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults
- name: Build example
run: |
cd cool-example
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ all:
clean:
rm -rf cool-example env.yml
setup-env:
echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > env.yml
echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > .copier-answers.yml
run:
cd cool-example && poetry up && poetry install && poetry update && poetry lock
docs: clean
$(MAKE) setup-env
copier copy gh:ThatXliner/pyt2 . -a env.yml --defaults -d add_docs=true
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=true
$(MAKE) run
cp cool-example/poetry.lock 'template/{{ pypi_name }}/{% if add_docs %}poetry.lock{% endif %}'
$(MAKE) clean
nodocs: clean
$(MAKE) setup-env
copier copy gh:ThatXliner/pyt2 . -a env.yml --defaults -d add_docs=false
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=false
$(MAKE) run
cp cool-example/poetry.lock 'template/{{ pypi_name }}/{% if not add_docs %}poetry.lock{% endif %}'
$(MAKE) clean

0 comments on commit b9fddf5

Please sign in to comment.