Skip to content

Commit 3c7f9bd

Browse files
committed
Update coveragepy and use sys.monitoring interface
1 parent ae65e2d commit 3c7f9bd

File tree

3 files changed

+114
-78
lines changed

3 files changed

+114
-78
lines changed

.github/workflows/ci-code.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,15 @@ jobs:
7171
env:
7272
AIIDA_TEST_PROFILE: test_aiida
7373
AIIDA_WARN_v3: 1
74-
# NOTE1: Python 3.12 has a performance regression when running with code coverage
75-
# so run code coverage only for python 3.9.
7674
run: |
77-
pytest -n auto --db-backend ${{ matrix.database-backend }} -m 'not nightly' tests/ ${{ matrix.python-version == '3.9' && '--cov aiida' || '' }}
75+
pytest -n auto --db-backend ${{ matrix.database-backend }} -m 'not nightly' tests/ ${{ matrix.python-version == '3.13' && '--cov aiida' || '' }}
7876
7977
- name: Upload coverage report
80-
if: matrix.python-version == 3.9 && github.repository == 'aiidateam/aiida-core'
78+
if: matrix.python-version == 3.13 && github.repository == 'aiidateam/aiida-core'
8179
uses: codecov/codecov-action@v5
8280
with:
8381
token: ${{ secrets.CODECOV_TOKEN }}
84-
name: aiida-pytests-py3.9
82+
name: aiida-pytests-py3.13
8583
files: ./coverage.xml
8684
fail_ci_if_error: false # don't fail job, if coverage upload fails
8785

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ tests = [
277277
'pytest-regressions~=2.2',
278278
'pytest-xdist~=3.6',
279279
'pympler~=1.0',
280-
'coverage~=7.0',
280+
'coverage~=7.10',
281281
'sphinx~=7.2.0',
282282
'docutils~=0.20'
283283
]
@@ -296,6 +296,7 @@ Home = 'http://www.aiida.net/'
296296
Source = 'https://github.com/aiidateam/aiida-core'
297297

298298
[tool.coverage.run]
299+
core = 'sysmon'
299300
omit = [
300301
"src/aiida/tools/_dumping/**/*"
301302
]

0 commit comments

Comments
 (0)