fix: github tests

This commit is contained in:
2026-03-19 17:43:55 +01:00
parent ea6bf9026b
commit 6c98d38a93
3 changed files with 6 additions and 33 deletions
+2 -2
View File
@@ -15,12 +15,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Setup dependencies
run: pip install -r requirements.test.txt
run: pip install uv && uv pip install -r pyproject.toml
- name: Run tests
env:
DJANGO_SETTINGS_MODULE: config.settings
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
uses: codecov/codecov-action@v4.0.1
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>
+4 -5
View File
@@ -2,22 +2,21 @@
<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 %}">
<img class="mx-auto h-full " src="{{ product.images.all.0.m.url }}"
alt="{{ product.name }}"/>
<img class="mx-auto h-full " src="{{ product.images.all.0.m.url }}" alt="{{ product.name }}"/>
</a>
<div class="pt-6 flex justify-between">
<a href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}"
class="link">
<a href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}" class="link">
<h1>{{ product.name }}</h1>
</a>
<p class="txt-2xl">
{% with product.current_prices.0 as price %}
{{ price.price_with_tax }} €
{% endwith %}
</p>
</div>
<div class="mt-4">
{% include 'components/cart/add_to_cart.html' %}
</div>