|
20 | 20 | runs-on: ${{ matrix.platform }} |
21 | 21 | strategy: |
22 | 22 | matrix: |
23 | | - platform: [ubuntu-latest, windows-latest, macos-latest] |
| 23 | + platform: [ubuntu-latest] |
| 24 | + #, windows-latest, macos-latest] |
24 | 25 | python-version: [3.8, 3.9, "3.10"] |
25 | 26 |
|
26 | 27 | steps: |
|
40 | 41 | sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \ |
41 | 42 | libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \ |
42 | 43 | libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 pkg-config libhdf5-103 libhdf5-dev \ |
43 | | - libegl1 |
| 44 | + libegl1 libgl1 |
| 45 | + sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev |
| 46 | + # strategy borrowed from vispy for installing opengl libs on windows |
| 47 | + - name: Install Windows OpenGL |
| 48 | + if: runner.os == 'Windows' |
| 49 | + run: | |
| 50 | + git clone --depth 1 git://github.com/pyvista/gl-ci-helpers.git |
| 51 | + powershell gl-ci-helpers/appveyor/install_opengl.ps1 |
| 52 | + # note: if you need dependencies from conda, considering using |
| 53 | + # setup-miniconda: https://github.com/conda-incubator/setup-miniconda |
| 54 | + # and |
| 55 | + # tox-conda: https://github.com/tox-dev/tox-conda |
44 | 56 | - name: Install dependencies |
45 | 57 | run: | |
46 | 58 | python -m pip install --upgrade pip |
|
53 | 65 |
|
54 | 66 | - name: Coverage |
55 | 67 | uses: codecov/codecov-action@v1 |
56 | | - |
57 | | - deploy: |
58 | | - # this will run when you have tagged a commit, starting with "v*" |
59 | | - # and requires that you have put your twine API key in your |
60 | | - # github secrets (see readme for details) |
61 | | - needs: [test] |
62 | | - runs-on: ubuntu-latest |
63 | | - if: contains(github.ref, 'tags') |
64 | | - steps: |
65 | | - - uses: actions/checkout@v2 |
66 | | - - name: Set up Python |
67 | | - uses: actions/setup-python@v2 |
68 | | - with: |
69 | | - python-version: "3.x" |
70 | | - - name: Install dependencies |
71 | | - run: | |
72 | | - python -m pip install --upgrade pip |
73 | | - pip install -U setuptools setuptools_scm wheel twine |
74 | | - - name: Build and publish |
75 | | - env: |
76 | | - TWINE_USERNAME: __token__ |
77 | | - TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }} |
78 | | - run: | |
79 | | - git tag |
80 | | - python setup.py sdist bdist_wheel |
81 | | - twine upload dist/* |
0 commit comments