From 56a1ebd60380b69b3abe6c3caeedfdfdfa9177f5 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Thu, 9 May 2024 22:25:09 +0000 Subject: [PATCH] ci: add type checking coverage information to codecov --- .github/workflows/mypy.yml | 14 +++++++++++++- .gitignore | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 2a0502f9..606491c5 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -19,9 +19,21 @@ jobs: cache: "pip" cache-dependency-path: | **/*requirements*.txt + - name: Install apt deps run: sudo apt-get update && sudo apt-get install -qq -y libxml2-dev libxslt1-dev + - name: Install dependencies run: pip install -Ur requirements-dev.txt + - name: Test with mypy - run: pre-commit run mypy --all + run: mypy --cobertura-xml-report . . + + - uses: codecov/codecov-action@v4 + with: + name: types + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} + disable_search: true + file: cobertura.xml + flags: types diff --git a/.gitignore b/.gitignore index 0a8cb56f..83e3ae43 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,4 @@ config.json .vagrant/ .mypy_cache/ .DS_Store +cobertura.xml