Skip to content

Commit b0de2ce

Browse files
committed
removed python 3.7 and opencl from github CI
1 parent 391113e commit b0de2ce

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/test_and_deploy.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
platform: [ubuntu-latest, windows-latest, macos-latest]
26-
python-version: [3.7, 3.8, 3.9]
26+
python-version: [3.8, 3.9]
2727

2828
steps:
2929
- uses: actions/checkout@v2
@@ -33,39 +33,39 @@ jobs:
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535

36-
# these libraries, along with pytest-xvfb (added in the `deps` in tox.ini),
37-
# enable testing on Qt on linux
38-
- name: Install Linux libraries
39-
if: runner.os == 'Linux'
40-
run: |
41-
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \
42-
libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \
43-
libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
36+
# these libraries enable testing on Qt on linux
37+
- uses: tlambert03/setup-qt-libs@v1
4438

45-
# strategy borrowed from vispy for installing opengl libs on windows
46-
- name: Install Windows OpenGL
47-
if: runner.os == 'Windows'
48-
run: |
49-
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
50-
powershell gl-ci-helpers/appveyor/install_opengl.ps1
39+
- name: Set up conda ${{ matrix.python-version }}
40+
uses: conda-incubator/setup-miniconda@v2.0.0
41+
with:
42+
auto-update-conda: true
43+
activate-environment: test
44+
python-version: ${{ matrix.python-version }}
45+
channels: conda-forge
46+
47+
- name: Conda info
48+
shell: bash -l {0}
49+
run: conda info
5150

5251
# note: if you need dependencies from conda, considering using
5352
# setup-miniconda: https://github.com/conda-incubator/setup-miniconda
5453
# and
5554
# tox-conda: https://github.com/tox-dev/tox-conda
5655
- name: Install dependencies
56+
shell: bash -l {0}
5757
run: |
5858
python -m pip install --upgrade pip
59-
pip install setuptools tox tox-gh-actions
59+
pip install pytest pytest-cov PyQt5 pytest-qt pytest-xvfb
60+
pip install -e .
6061
61-
# this runs the platform-specific tests declared in tox.ini
62-
- name: Test with tox
63-
run: tox
64-
env:
65-
PLATFORM: ${{ matrix.platform }}
62+
# this runs the platform-specific tests
63+
- name: Run tests
64+
shell: bash -l {0}
65+
run: pytest -v --cov=./ --cov-report=xml
6666

67-
- name: Coverage
68-
uses: codecov/codecov-action@v1
67+
- name: Upload coverage to Codecov
68+
uses: codecov/codecov-action@v2
6969

7070
deploy:
7171
# this will run when you have tagged a commit, starting with "v*"

0 commit comments

Comments
 (0)