Merge pull request #1754 from j9ac9k/remove-pytest-extensions-from-ci
Remove pytest extensions from ci
This commit is contained in:
commit
cf70cf4395
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -72,7 +72,7 @@ jobs:
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install ${{ matrix.qt-version }} numpy${{ matrix.numpy-version }} scipy pyopengl h5py matplotlib numba
|
pip install ${{ matrix.qt-version }} numpy${{ matrix.numpy-version }} scipy pyopengl h5py matplotlib numba
|
||||||
pip install .
|
pip install .
|
||||||
pip install pytest pytest-cov pytest-xdist coverage
|
pip install pytest
|
||||||
- name: "Install Linux VirtualDisplay"
|
- name: "Install Linux VirtualDisplay"
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
|
@ -107,9 +107,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir $SCREENSHOT_DIR
|
mkdir $SCREENSHOT_DIR
|
||||||
pytest pyqtgraph examples -v \
|
pytest pyqtgraph examples -v \
|
||||||
-n auto \
|
|
||||||
--junitxml pytest.xml \
|
--junitxml pytest.xml \
|
||||||
--cov pyqtgraph --cov-report=xml --cov-report=html
|
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Upload Screenshots
|
- name: Upload Screenshots
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
|
@ -13,18 +13,21 @@ def test_ErrorBarItem_defer_data():
|
||||||
curve = pg.PlotCurveItem(x=x, y=x)
|
curve = pg.PlotCurveItem(x=x, y=x)
|
||||||
plot.addItem(curve)
|
plot.addItem(curve)
|
||||||
app.processEvents()
|
app.processEvents()
|
||||||
|
app.processEvents()
|
||||||
r_no_ebi = plot.viewRect()
|
r_no_ebi = plot.viewRect()
|
||||||
|
|
||||||
# ErrorBarItem with no data shouldn't affect the view rect
|
# ErrorBarItem with no data shouldn't affect the view rect
|
||||||
err = pg.ErrorBarItem()
|
err = pg.ErrorBarItem()
|
||||||
plot.addItem(err)
|
plot.addItem(err)
|
||||||
app.processEvents()
|
app.processEvents()
|
||||||
|
app.processEvents()
|
||||||
r_empty_ebi = plot.viewRect()
|
r_empty_ebi = plot.viewRect()
|
||||||
|
|
||||||
assert r_no_ebi.height() == r_empty_ebi.height()
|
assert r_no_ebi.height() == r_empty_ebi.height()
|
||||||
|
|
||||||
err.setData(x=x, y=x, bottom=x, top=x)
|
err.setData(x=x, y=x, bottom=x, top=x)
|
||||||
app.processEvents()
|
app.processEvents()
|
||||||
|
app.processEvents()
|
||||||
r_ebi = plot.viewRect()
|
r_ebi = plot.viewRect()
|
||||||
|
|
||||||
assert r_ebi.height() > r_empty_ebi.height()
|
assert r_ebi.height() > r_empty_ebi.height()
|
||||||
|
@ -32,6 +35,7 @@ def test_ErrorBarItem_defer_data():
|
||||||
# unset data, ErrorBarItem disappears and view rect goes back to original
|
# unset data, ErrorBarItem disappears and view rect goes back to original
|
||||||
err.setData(x=None, y=None)
|
err.setData(x=None, y=None)
|
||||||
app.processEvents()
|
app.processEvents()
|
||||||
|
app.processEvents()
|
||||||
r_clear_ebi = plot.viewRect()
|
r_clear_ebi = plot.viewRect()
|
||||||
|
|
||||||
assert r_clear_ebi.height() == r_empty_ebi.height()
|
assert r_clear_ebi.height() == r_empty_ebi.height()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user