From cd2ef10fa5262d559d744109228f79f5a06815a1 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 8 Dec 2022 14:06:08 +0100 Subject: Add codecov and rename workflow jobs for consistency. --- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 4 +++- codecov.yml | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 codecov.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d62b62b4..95de7f7b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,7 +3,7 @@ on: push: workflow_dispatch: jobs: - run-mypy: + mypy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d8f5d5f5..255b6cac 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ env: DEBIAN_FRONTEND: noninteractive jobs: - run-test: + test: runs-on: ubuntu-22.04 steps: - name: Install Poppler @@ -22,3 +22,5 @@ jobs: pip install -r requirements/test_requirements.txt - name: Run tests run: pytest --cov=sec_certs tests + - name: Code coverage upload + uses: codecov/codecov-action@v3 diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..5745008d --- /dev/null +++ b/codecov.yml @@ -0,0 +1,7 @@ +coverage: + range: 50..100 + round: up + precision: 2 + +ignore: + - "tests" \ No newline at end of file -- cgit v1.3.1