Skip to content

Commit

Permalink
Merge pull request #32 from BiAPoL/remove-python-3.7-and-opencl-from-…
Browse files Browse the repository at this point in the history
…github-CI

removed python 3.7 and opencl from github CI
  • Loading branch information
jo-mueller authored Aug 24, 2022
2 parents 391113e + b0de2ce commit 7fff6ff
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand All @@ -33,39 +33,39 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

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

# strategy borrowed from vispy for installing opengl libs on windows
- name: Install Windows OpenGL
if: runner.os == 'Windows'
run: |
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1
- name: Set up conda ${{ matrix.python-version }}
uses: conda-incubator/[email protected]
with:
auto-update-conda: true
activate-environment: test
python-version: ${{ matrix.python-version }}
channels: conda-forge

- name: Conda info
shell: bash -l {0}
run: conda info

# note: if you need dependencies from conda, considering using
# setup-miniconda: https://github.com/conda-incubator/setup-miniconda
# and
# tox-conda: https://github.com/tox-dev/tox-conda
- name: Install dependencies
shell: bash -l {0}
run: |
python -m pip install --upgrade pip
pip install setuptools tox tox-gh-actions
pip install pytest pytest-cov PyQt5 pytest-qt pytest-xvfb
pip install -e .
# this runs the platform-specific tests declared in tox.ini
- name: Test with tox
run: tox
env:
PLATFORM: ${{ matrix.platform }}
# this runs the platform-specific tests
- name: Run tests
shell: bash -l {0}
run: pytest -v --cov=./ --cov-report=xml

- name: Coverage
uses: codecov/codecov-action@v1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2

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

0 comments on commit 7fff6ff

Please sign in to comment.