Skip to content

Commit

Permalink
Add memray support
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Dec 2, 2022
1 parent e85589c commit 7cb69a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ jobs:
- name: test latest dependency versions
os: ubuntu-latest
python-version: "3.x"
toxenv: test-xdist-cov
toxenv: test-xdist-cov-memray
- name: test oldest dependency versions
os: ubuntu-latest
python-version: 3.8
toxenv: test-oldestdeps-xdist-cov
toxenv: test-oldestdeps-xdist-cov-memray
- name: test SDP dependencies in requirements-sdp.txt
os: ubuntu-latest
python-version: 3.9
toxenv: test-sdpdeps-xdist
toxenv: test-sdpdeps-xdist-memray
- name: test installed package with --pyargs
os: ubuntu-latest
python-version: '3.10'
toxenv: test-pyargs-xdist
toxenv: test-pyargs-xdist-memray
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ test =
pytest>=6.0.0
pytest-cov>=2.9.0
pytest-doctestplus>=0.10.0
pytest-memray
pytest-openfiles>=0.5.0
requests_mock>=1.0

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,build}
test{,-oldestdeps,-devdeps,-sdpdeps}{,-pyargs,-warnings,-regtests,-cov}
test{,-oldestdeps,-devdeps,-sdpdeps}{,-pyargs,-warnings,-regtests,-cov,-memray}
build-docs
isolated_build = true

Expand Down Expand Up @@ -55,6 +55,7 @@ description =
warnings: treating warnings as errors
regtests: with --bigdata and --slow flags
cov: with coverage
memray: with memory profiling
xdist: using parallel processing
# The following indicates which extras_require from setup.cfg will be installed
extras = test
Expand All @@ -76,6 +77,7 @@ commands =
pip freeze
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

0 comments on commit 7cb69a6

Please sign in to comment.