From 2fd9a946a4765b3d5434a27e4d1796ac8eb70c2a Mon Sep 17 00:00:00 2001 From: jedi Date: Thu, 28 Nov 2024 18:55:18 +0100 Subject: [PATCH] stash --- .forgejo/workflows/deploy_staging.yml | 8 +- core/.coveragerc | 7 +- web/src/App.vue | 13 ++-- web/src/components/inputs/InputCombo.vue | 6 +- web/src/store.js | 7 +- web/src/views/Item.vue | 95 ++++++++++++++---------- web/src/views/Items.vue | 40 ++-------- web/src/views/Ticket.vue | 5 +- web/src/views/Tickets.vue | 7 +- 9 files changed, 90 insertions(+), 98 deletions(-) diff --git a/.forgejo/workflows/deploy_staging.yml b/.forgejo/workflows/deploy_staging.yml index 0dccd66..881f31e 100644 --- a/.forgejo/workflows/deploy_staging.yml +++ b/.forgejo/workflows/deploy_staging.yml @@ -17,12 +17,12 @@ jobs: - name: Install dependencies working-directory: core run: pip3 install -r requirements.dev.txt - - name: Run django tests + - name: Run django tests with coverage working-directory: core - run: python3 manage.py test - - name: Run django coverage + run: coverage run manage.py test + - name: Evaluate coverage working-directory: core - run: coverage manage.py test + run: coverage report deploy: needs: [ test ] diff --git a/core/.coveragerc b/core/.coveragerc index 14c1fba..3091244 100644 --- a/core/.coveragerc +++ b/core/.coveragerc @@ -9,6 +9,9 @@ omit = */tests/* */migrations/* core/asgi.py - core/wsgi.py + core/globals.py core/settings.py - manage.py \ No newline at end of file + mail/socket.py + manage.py + server.py + helper.py \ No newline at end of file diff --git a/web/src/App.vue b/web/src/App.vue index bd4956f..d2c9f7d 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,5 +1,6 @@