From 6c98d38a935f75a2b81aa9ae61d6a5c2b47a585f Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Thu, 19 Mar 2026 17:43:55 +0100 Subject: [PATCH] fix: github tests --- .github/workflows/runtests.yml | 4 ++-- web/templates/components/generic/toast.html | 26 --------------------- web/templates/components/product_card.html | 9 ++++--- 3 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 web/templates/components/generic/toast.html diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index 672b842..fc50491 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -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: diff --git a/web/templates/components/generic/toast.html b/web/templates/components/generic/toast.html deleted file mode 100644 index 6fb4974..0000000 --- a/web/templates/components/generic/toast.html +++ /dev/null @@ -1,26 +0,0 @@ - diff --git a/web/templates/components/product_card.html b/web/templates/components/product_card.html index 72e3fb7..ce97aa0 100644 --- a/web/templates/components/product_card.html +++ b/web/templates/components/product_card.html @@ -2,22 +2,21 @@
- {{ product.name }} + {{ product.name }}
- +

{{ product.name }}

-
+

{% with product.current_prices.0 as price %} {{ price.price_with_tax }} € {% endwith %}

+
{% include 'components/cart/add_to_cart.html' %}