fix: github tests
This commit is contained in:
@@ -15,12 +15,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: pip install -r requirements.test.txt
|
run: pip install uv && uv pip install -r pyproject.toml
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
DJANGO_SETTINGS_MODULE: config.settings
|
DJANGO_SETTINGS_MODULE: config.settings
|
||||||
DEBUG: True
|
DEBUG: True
|
||||||
run: pytest --cov --junitxml=junit.xml -o junit_family=legacy && coverage xml
|
run: uv run pytest --cov --junitxml=junit.xml -o junit_family=legacy && coverage xml
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v4.0.1
|
uses: codecov/codecov-action@v4.0.1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
<div id="toast-default"
|
|
||||||
class="flex items-center w-full max-w-xs p-4 rounded-lg shadow "
|
|
||||||
role="alert"
|
|
||||||
>
|
|
||||||
<div class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 rounded-lg ">
|
|
||||||
{% block icon %}
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
<div class="ms-3 text-sm font-normal">
|
|
||||||
{% block toast_text %}{% endblock %}
|
|
||||||
</div>
|
|
||||||
<button type="button"
|
|
||||||
class="ms-auto -mx-1.5 -my-1.5 hover: rounded-lg focus:ring-2
|
|
||||||
focus:ring-gray-300 p-1.5 hover: inline-flex items-center justify-center h-8 w-8
|
|
||||||
:text-white : cursor-pointer"
|
|
||||||
data-dismiss-target="#toast-default" aria-label="Close"
|
|
||||||
hx-on:click="htmx.toggleClass(htmx.find('#toast-default'), 'hidden')"
|
|
||||||
>
|
|
||||||
<span class="sr-only">{% translate 'Cerrar' %}</span>
|
|
||||||
<svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
||||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
||||||
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
@@ -2,22 +2,21 @@
|
|||||||
<article class="rounded-lg border-primary p-6 shadow-sm">
|
<article class="rounded-lg border-primary p-6 shadow-sm">
|
||||||
|
|
||||||
<a class="h-56 w-full" href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}">
|
<a class="h-56 w-full" href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}">
|
||||||
<img class="mx-auto h-full " src="{{ product.images.all.0.m.url }}"
|
<img class="mx-auto h-full " src="{{ product.images.all.0.m.url }}" alt="{{ product.name }}"/>
|
||||||
alt="{{ product.name }}"/>
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="pt-6 flex justify-between">
|
<div class="pt-6 flex justify-between">
|
||||||
<a href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}"
|
<a href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}" class="link">
|
||||||
class="link">
|
|
||||||
<h1>{{ product.name }}</h1>
|
<h1>{{ product.name }}</h1>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="txt-2xl">
|
<p class="txt-2xl">
|
||||||
{% with product.current_prices.0 as price %}
|
{% with product.current_prices.0 as price %}
|
||||||
{{ price.price_with_tax }} €
|
{{ price.price_with_tax }} €
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
{% include 'components/cart/add_to_cart.html' %}
|
{% include 'components/cart/add_to_cart.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user