File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,16 @@ jobs:
119119 - name : run tests
120120 shell : bash
121121 run : |
122- python -Wd -m pytest -p no:randomly --ds=${{ env.settings_path }} ${{ env.unit_test_paths }} --cov=.
122+ python -Wd -m pytest -p no:randomly --ds=${{ env.settings_path }} ${{ env.unit_test_paths }} --cov=. \
123+ --report-log=reports/pytest-report-${{ matrix.shard_name }}.jsonl
124+
125+ - name : Upload pytest timing report
126+ if : always()
127+ uses : actions/upload-artifact@v7
128+ with :
129+ name : pytest-report-${{ matrix.shard_name }}-${{ matrix.python-version }}-${{ matrix.django-version }}-${{ matrix.mongo-version }}-${{ matrix.os-version }}
130+ path : reports/pytest-report-${{ matrix.shard_name }}.jsonl
131+ overwrite : true
123132
124133 - name : rename warnings json file
125134 if : success()
Original file line number Diff line number Diff line change @@ -1719,6 +1719,7 @@ pytest==8.2.0
17191719 # pytest-json-report
17201720 # pytest-metadata
17211721 # pytest-randomly
1722+ # pytest-reportlog
17221723 # pytest-xdist
17231724pytest-attrib==0.1.3
17241725 # via -r requirements/edx/testing.txt
@@ -1734,6 +1735,8 @@ pytest-metadata==3.1.1
17341735 # pytest-json-report
17351736pytest-randomly==4.0.1
17361737 # via -r requirements/edx/testing.txt
1738+ pytest-reportlog==1.0.0
1739+ # via -r requirements/edx/testing.txt
17371740pytest-xdist[psutil]==3.8.0
17381741 # via -r requirements/edx/testing.txt
17391742python-dateutil==2.9.0.post0
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ pytest-django # Django support for pytest
3838pytest-json-report # Output json formatted warnings after running pytest
3939pytest-metadata # To prevent 'make upgrade' failure, dependency of pytest-json-report
4040pytest-randomly # pytest plugin to randomly order tests
41+ pytest-reportlog # Per-test timing data including setup/teardown (used for shard rebalancing)
4142pytest-xdist[psutil] # Parallel execution of tests on multiple CPU cores or hosts
4243singledispatch # Backport of functools.singledispatch from Python 3.4+, used in tests of XBlock rendering
4344testfixtures # Provides a LogCapture utility used by several tests
Original file line number Diff line number Diff line change @@ -1305,6 +1305,7 @@ pytest==8.2.0
13051305 # pytest-json-report
13061306 # pytest-metadata
13071307 # pytest-randomly
1308+ # pytest-reportlog
13081309 # pytest-xdist
13091310pytest-attrib==0.1.3
13101311 # via -r requirements/edx/testing.in
@@ -1320,6 +1321,8 @@ pytest-metadata==3.1.1
13201321 # pytest-json-report
13211322pytest-randomly==4.0.1
13221323 # via -r requirements/edx/testing.in
1324+ pytest-reportlog==1.0.0
1325+ # via -r requirements/edx/testing.in
13231326pytest-xdist[psutil]==3.8.0
13241327 # via -r requirements/edx/testing.in
13251328python-dateutil==2.9.0.post0
You can’t perform that action at this time.
0 commit comments