diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6359fc72..25030852 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,13 +41,9 @@ jobs: echo "KIMAI_BASE_URL=${{ secrets.KIMAI_BASE_URL }}" >> "$GITHUB_ENV" echo "KIMAI_API_TOKEN=${{ secrets.KIMAI_API_TOKEN }}" >> "$GITHUB_ENV" - - name: Run tests with pytest - run: | - uv run pytest tests/ -m "not playwright" -v --tb=short - - name: Run tests with coverage run: | - uv run coverage run -m pytest tests/ -m "not playwright" + uv run coverage run -m pytest tests/ -m "not playwright" -v --tb=short uv run coverage report uv run coverage xml diff --git a/apps/admin_dashboard/src/components/empty.tsx b/apps/admin_dashboard/src/components/empty.tsx new file mode 100644 index 00000000..10f7dfbb --- /dev/null +++ b/apps/admin_dashboard/src/components/empty.tsx @@ -0,0 +1,11 @@ +type EmptyProps = { + children: string + hidden: boolean +} + +function Empty({ children, hidden }: EmptyProps) { + if (hidden) return null + return
- {jsonPreview(latestJob.result)}
-
- ) : null}
- >
- ) : (
-
+ {jsonPreview(latestJob.result)}
+
+ ) : null}
+ >
+ ) : (
+