mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
Tweak formatting of workflow file
This commit is contained in:
parent
c1ec7e3cd1
commit
c3ee08fbb2
|
@ -65,7 +65,7 @@ jobs:
|
|||
|
||||
- name: Checkout Code Repository
|
||||
uses: actions/checkout@v2
|
||||
{% if cookiecutter.use_docker == 'y' -%}
|
||||
{%- if cookiecutter.use_docker == 'y' %}
|
||||
|
||||
- name: Build the Stack
|
||||
run: docker-compose -f local.yml build
|
||||
|
@ -81,7 +81,6 @@ jobs:
|
|||
|
||||
- name: Tear down the Stack
|
||||
run: docker-compose -f local.yml down
|
||||
|
||||
{%- else %}
|
||||
|
||||
- name: Set up Python 3.8
|
||||
|
@ -93,8 +92,8 @@ jobs:
|
|||
id: pip-cache-location
|
||||
run: |
|
||||
echo "::set-output name=dir::$(pip cache dir)"
|
||||
{%- raw %}
|
||||
|
||||
{% raw %}
|
||||
- name: Cache pip Project Dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
@ -104,7 +103,7 @@ jobs:
|
|||
key: ${{ runner.os }}-pip-${{ hashFiles('**/local.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
{% endraw %}
|
||||
{%- endraw %}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
|
@ -113,5 +112,4 @@ jobs:
|
|||
|
||||
- name: Test with pytest
|
||||
run: pytest
|
||||
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user