@@ -36,27 +36,32 @@ jobs:
3636 # these libraries enable testing on Qt on linux
3737 - uses : tlambert03/setup-qt-libs@v1
3838
39+ # strategy borrowed from vispy for installing opengl libs on windows
40+ - name : Install Windows OpenGL
41+ if : runner.os == 'Windows'
42+ run : |
43+ git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
44+ powershell gl-ci-helpers/appveyor/install_opengl.ps1
45+
3946 # note: if you need dependencies from conda, considering using
4047 # setup-miniconda: https://github.com/conda-incubator/setup-miniconda
4148 # and
4249 # tox-conda: https://github.com/tox-dev/tox-conda
4350 - name : Install dependencies
4451 run : |
4552 python -m pip install --upgrade pip
46- python -m pip install setuptools tox tox-gh-actions pytest-qt pytest-xvfb
53+ python -m pip install setuptools tox tox-gh-actions
4754
4855 # this runs the platform-specific tests declared in tox.ini
4956 - name : Test with tox
50- uses : GabrielBB/xvfb-action@v1
57+ uses : aganders3/headless-gui@v2
5158 with :
5259 run : python -m tox
5360 env :
5461 PLATFORM : ${{ matrix.platform }}
5562
5663 - name : Coverage
57- uses : codecov/codecov-action@v2
58- with :
59- token : ${{ secrets.CODECOV_TOKEN }}
64+ uses : codecov/codecov-action@v3
6065
6166 deploy :
6267 # this will run when you have tagged a commit, starting with "v*"
@@ -66,20 +71,20 @@ jobs:
6671 runs-on : ubuntu-latest
6772 if : contains(github.ref, 'tags')
6873 steps :
69- - uses : actions/checkout@v2
74+ - uses : actions/checkout@v3
7075 - name : Set up Python
71- uses : actions/setup-python@v2
76+ uses : actions/setup-python@v4
7277 with :
7378 python-version : " 3.x"
7479 - name : Install dependencies
7580 run : |
7681 python -m pip install --upgrade pip
77- pip install -U setuptools setuptools_scm wheel twine
82+ pip install -U setuptools setuptools_scm wheel twine build
7883 - name : Build and publish
7984 env :
8085 TWINE_USERNAME : __token__
8186 TWINE_PASSWORD : ${{ secrets.TWINE_API_KEY }}
8287 run : |
8388 git tag
84- python setup.py sdist bdist_wheel
89+ python -m build .
8590 twine upload dist/*
0 commit comments