From f2b2afc9d40fababc3982616a4b0920055f7fd10 2023-03-06 16:33:15 From: Matthias Bussonnier Date: 2023-03-06 16:33:15 Subject: [PATCH] try to upload json reports --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7396855..62cdea4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,7 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel build python -m pip install --upgrade -e .[${{ matrix.deps }}] - python -m pip install --upgrade check-manifest pytest-cov + python -m pip install --upgrade check-manifest pytest-cov pytest-json-report - name: Try building with Python build if: runner.os != 'Windows' # setup.py does not support sdist on Windows run: | @@ -75,7 +75,13 @@ jobs: env: COLUMNS: 120 run: | - pytest --color=yes -raXxs ${{ startsWith(matrix.python-version, 'pypy') && ' ' || '--cov --cov-report=xml' }} + pytest --color=yes -raXxs ${{ startsWith(matrix.python-version, 'pypy') && ' ' || '--cov --cov-report=xml' }} --json-report --json-report-file=./report-${{ matrix.python-version }}-${{runner.os}}.json + - uses: actions/upload-artifact@v3 + with: + name: upload pytest timing reports as json + path: | + ./report-*.json + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: