diff --git a/{{cookiecutter.project_name}}/.github/workflows/ci.yaml b/{{cookiecutter.project_name}}/.github/workflows/ci.yaml index 2d604bb..b5a1b9f 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/ci.yaml +++ b/{{cookiecutter.project_name}}/.github/workflows/ci.yaml @@ -51,13 +51,13 @@ jobs: {% if cookiecutter.dependency_manager != 'pip' -%} poetry env use {% raw %}"${{ matrix.python-version }}"{% endraw %} poetry install - {% else -%} + {%- else -%} python3 -m venv .venv . .venv/bin/activate && pip install .[dev] - {% endif %} + {%- endif %} - name: Test with pytest {% if cookiecutter.dependency_manager != 'pip' -%} run: poetry run pytest - {% else -%} + {%- else -%} run: . .venv/bin/activate && python -m pytest - {% endif -%} + {%- endif %} diff --git a/{{cookiecutter.project_name}}/makefile b/{{cookiecutter.project_name}}/makefile index c688812..4bb4ff8 100644 --- a/{{cookiecutter.project_name}}/makefile +++ b/{{cookiecutter.project_name}}/makefile @@ -235,7 +235,7 @@ test: ## Run tests docker: ## Build Docker image and run container {% if cookiecutter.dependency_manager == 'pip' -%} @$(MAKE) --quiet freeze - {%- endif %} + {% endif -%} @docker build -t {{ cookiecutter.project_name }} . @docker run -it --rm {{ cookiecutter.project_name }}