diff --git a/.github/workflows/docker-no-push.yml b/.github/workflows/docker-no-push.yml new file mode 100644 index 0000000..40152d7 --- /dev/null +++ b/.github/workflows/docker-no-push.yml @@ -0,0 +1,49 @@ +name: Build Docker Image (No Push) + +on: + push: + branches-ignore: + - development + - latest + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout del código + uses: actions/checkout@v6 + - name: Configurar Python + uses: actions/setup-python@v6 + with: + python-version: '3.14' + - name: Instalar dependencias + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Ejecutar tests + env: + DJANGO_SETTINGS_MODULE: proyecto.settings + run: | + python manage.py test + + docker: + runs-on: ubuntu-latest + needs: test + permissions: + contents: read + + steps: + - name: Checkout del código + uses: actions/checkout@v6 + + - name: Configurar Docker Buildx + uses: docker/setup-buildx-action@v4 + + - name: Build (sin push) + uses: docker/build-push-action@v6 + with: + context: . + push: false diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a34d4f8..2f644dc 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,7 +3,8 @@ name: Build and Push Docker Image on: push: branches: - - '**' # Esto aplica para cualquier rama + - development + - latest jobs: test: @@ -56,4 +57,4 @@ jobs: context: . push: true # Sanitizamos el nombre de la rama (reemplazamos / por -) - tags: ghcr.io/dsaub/proyecto-mvc:${{ env.IMAGE_TAG }} \ No newline at end of file + tags: ghcr.io/dsaub/proyecto-mvc:${{ env.IMAGE_TAG }} diff --git a/.gitignore b/.gitignore index 1103ca5..afb4ca3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,7 @@ db.sqlite3 .venv .env logs/ +__pycache__/ +*.pyc tienda/__pycache__/ -proyecto/__pycache__/ \ No newline at end of file +proyecto/__pycache__/ diff --git a/__pycache__/test_paypal.cpython-314.pyc b/__pycache__/test_paypal.cpython-314.pyc deleted file mode 100644 index bc3a279..0000000 Binary files a/__pycache__/test_paypal.cpython-314.pyc and /dev/null differ diff --git a/__pycache__/test_product_cache.cpython-314.pyc b/__pycache__/test_product_cache.cpython-314.pyc deleted file mode 100644 index 54b98ca..0000000 Binary files a/__pycache__/test_product_cache.cpython-314.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/0001_initial.cpython-314.pyc b/tienda/migrations/__pycache__/0001_initial.cpython-314.pyc deleted file mode 100644 index 407f3a4..0000000 Binary files a/tienda/migrations/__pycache__/0001_initial.cpython-314.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/0002_verificationcode_code_mode_and_more.cpython-314.pyc b/tienda/migrations/__pycache__/0002_verificationcode_code_mode_and_more.cpython-314.pyc deleted file mode 100644 index cdafd5e..0000000 Binary files a/tienda/migrations/__pycache__/0002_verificationcode_code_mode_and_more.cpython-314.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/0003_order_transaction_code.cpython-314.pyc b/tienda/migrations/__pycache__/0003_order_transaction_code.cpython-314.pyc deleted file mode 100644 index aeecff1..0000000 Binary files a/tienda/migrations/__pycache__/0003_order_transaction_code.cpython-314.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/0004_product_stock_stockreservation_stockreservationitem.cpython-314.pyc b/tienda/migrations/__pycache__/0004_product_stock_stockreservation_stockreservationitem.cpython-314.pyc deleted file mode 100644 index ac75c7e..0000000 Binary files a/tienda/migrations/__pycache__/0004_product_stock_stockreservation_stockreservationitem.cpython-314.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/0005_savedpaymentmethod.cpython-314.pyc b/tienda/migrations/__pycache__/0005_savedpaymentmethod.cpython-314.pyc deleted file mode 100644 index d1996ce..0000000 Binary files a/tienda/migrations/__pycache__/0005_savedpaymentmethod.cpython-314.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/0006_alter_category_name.cpython-314.pyc b/tienda/migrations/__pycache__/0006_alter_category_name.cpython-314.pyc deleted file mode 100644 index 808b8e4..0000000 Binary files a/tienda/migrations/__pycache__/0006_alter_category_name.cpython-314.pyc and /dev/null differ diff --git a/tienda/migrations/__pycache__/__init__.cpython-314.pyc b/tienda/migrations/__pycache__/__init__.cpython-314.pyc deleted file mode 100644 index a48244f..0000000 Binary files a/tienda/migrations/__pycache__/__init__.cpython-314.pyc and /dev/null differ diff --git a/tienda/static/css/custom.css b/tienda/static/css/custom.css index 58dc78e..5a77645 100644 --- a/tienda/static/css/custom.css +++ b/tienda/static/css/custom.css @@ -51,12 +51,26 @@ p.price { background-color: #513CB0 !important; color: #FFF; } +.navbar.header .container-fluid { + position: relative; +} .navbar.header .navbar-brand img { border-radius: 10px; } .navbar.header .navbar-brand { color: #FFF !important; } +.navbar.header .site-title-mobile { + color: #FFF; + position: absolute; + left: 50%; + transform: translateX(-50%); + margin: 0; + max-width: calc(100% - 9rem); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} .navbar.header .navbar-toggler { border-color: #FFF !important; } @@ -277,5 +291,3 @@ p.price { .texto-ajustado { overflow-wrap: anywhere; } - -/*# sourceMappingURL=custom.css.map */ diff --git a/tienda/templates/tienda/base.html b/tienda/templates/tienda/base.html index 28364dd..f4d6708 100644 --- a/tienda/templates/tienda/base.html +++ b/tienda/templates/tienda/base.html @@ -95,13 +95,15 @@ decoding="async"> + +