Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add memray support #7376

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ jobs:
cache-path: ${{ needs.crds.outputs.path }}
cache-key: crds-${{ needs.crds.outputs.context }}
envs: |
- linux: py39-oldestdeps-xdist-cov
- linux: py39-oldestdeps-xdist-cov-memray
pytest-results-summary: true
- linux: py39-xdist
- linux: py39-sdpdeps-xdist
- linux: py310-xdist
- linux: py311-xdist
- macos: py311-xdist
- linux: py39-xdist-memray
- linux: py39-sdpdeps-xdist-memray
- linux: py310-xdist-memray
- linux: py311-xdist-memray
- macos: py311-xdist-memray
pytest-results-summary: true
- linux: py311-xdist-cov
- linux: py311-xdist-cov-memray
coverage: codecov
pytest-results-summary: true
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ test =
pytest>=6.0.0
pytest-cov>=2.9.0
pytest-doctestplus>=0.10.0
pytest-memray
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this require a version number?

requests_mock>=1.0

[options.entry_points]
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
check-{style,security,dependencies}
test{,-oldestdeps,-devdeps,-sdpdeps}{,-pyargs,-warnings,-regtests,-cov}-xdist
test{,-oldestdeps,-devdeps,-sdpdeps}{,-pyargs,-warnings,-regtests,-cov,-memray}-xdist
build-{docs,dist}

# tox environments are constructed with so-called 'factors' (or terms)
Expand Down Expand Up @@ -48,6 +48,7 @@ description =
warnings: treating warnings as errors
regtests: with --bigdata and --slow flags
cov: with coverage
memray: with memory profiling
xdist: using parallel processing
pass_env =
TOXENV
Expand Down Expand Up @@ -78,6 +79,7 @@ commands_pre =
commands =
pytest \
cov: --cov=. --cov-config=setup.cfg --cov-report=xml \
memray: --memray
warnings: -W error \
regtests: --bigdata --slow --basetemp={homedir}/test_outputs \
xdist: -n auto \
Expand Down