Skip to content

Commit

Permalink
build: replace codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharis278 committed Apr 25, 2024
1 parent 171f316 commit d317508
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[run]
branch = True
data_file = .coverage
relative_files = True
source=edx_exams
omit =
edx_exams/settings/*
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:

- name: Run coverage
if: matrix.python-version == '3.8' && matrix.toxenv == 'django42'
uses: codecov/codecov-action@v1
uses: py-cov-action/python-coverage-comment-action@v3
with:
flags: unittests
fail_ci_if_error: true
GITHUB_TOKEN: ${{ github.token }}
MINIMUM_GREEN: 95
MINIMUM_ORANGE: 84
ANNOTATE_MISSING_LINES: true
ANNOTATION_TYPE: error
12 changes: 0 additions & 12 deletions codecov.yml

This file was deleted.

1 change: 1 addition & 0 deletions requirements/ci.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Requirements for running tests on CI
-c constraints.txt

coverage # Python code coverage
tox # Virtualenv management for tests
10 changes: 6 additions & 4 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
# pip-compile --output-file=requirements/ci.txt requirements/ci.in
#
cachetools==5.3.3
# via tox
chardet==5.2.0
# via tox
colorama==0.4.6
# via tox
coverage==7.5.0
# via -r requirements/ci.in
distlib==0.3.8
# via virtualenv
filelock==3.13.4
Expand All @@ -20,11 +22,11 @@ packaging==24.0
# via
# pyproject-api
# tox
platformdirs==4.2.0
platformdirs==4.2.1
# via
# tox
# virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via tox
pyproject-api==1.6.1
# via tox
Expand All @@ -34,5 +36,5 @@ tomli==2.0.1
# tox
tox==4.14.2
# via -r requirements/ci.in
virtualenv==20.25.1
virtualenv==20.26.0
# via tox

0 comments on commit d317508

Please sign in to comment.