Tweak formatting of workflow file

This commit is contained in:
Bruno Alla 2021-03-02 20:03:27 +00:00
parent c1ec7e3cd1
commit c3ee08fbb2

View File

@ -65,7 +65,7 @@ jobs:
- name: Checkout Code Repository - name: Checkout Code Repository
uses: actions/checkout@v2 uses: actions/checkout@v2
{% if cookiecutter.use_docker == 'y' -%} {%- if cookiecutter.use_docker == 'y' %}
- name: Build the Stack - name: Build the Stack
run: docker-compose -f local.yml build run: docker-compose -f local.yml build
@ -81,7 +81,6 @@ jobs:
- name: Tear down the Stack - name: Tear down the Stack
run: docker-compose -f local.yml down run: docker-compose -f local.yml down
{%- else %} {%- else %}
- name: Set up Python 3.8 - name: Set up Python 3.8
@ -93,8 +92,8 @@ jobs:
id: pip-cache-location id: pip-cache-location
run: | run: |
echo "::set-output name=dir::$(pip cache dir)" echo "::set-output name=dir::$(pip cache dir)"
{%- raw %}
{% raw %}
- name: Cache pip Project Dependencies - name: Cache pip Project Dependencies
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
@ -104,7 +103,7 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/local.txt') }} key: ${{ runner.os }}-pip-${{ hashFiles('**/local.txt') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pip- ${{ runner.os }}-pip-
{% endraw %} {%- endraw %}
- name: Install Dependencies - name: Install Dependencies
run: | run: |
@ -113,5 +112,4 @@ jobs:
- name: Test with pytest - name: Test with pytest
run: pytest run: pytest
{%- endif %} {%- endif %}