Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Nov 26, 2024
1 parent 4f44aea commit 58b621b
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Setup a headless display on Linux and Windows (not needed on MacOS)

```yml
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
uses: pyvista/setup-headless-display-action@v3
```
## 🚀 Usage
Expand All @@ -28,16 +28,15 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
- uses: pyvista/setup-headless-display-action@v3
```
### Options
- `qt` (default `false`): set to `true` to install libraries required for Qt
on Linux, e.g.:
```yml
- uses: pyvista/setup-headless-display-action@v2
- uses: pyvista/setup-headless-display-action@v3
with:
qt: true
```
Expand Down Expand Up @@ -65,24 +64,14 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
- name: Setup Python
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: pyvista/setup-headless-display-action@v3
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install PyVista
run: pip install pyvista
- name: Use PyVista
run: python -c "import pyvista;pyvista.Sphere().plot(screenshot='${{ matrix.os }}-sphere.png')"
- uses: actions/upload-artifact@v2
python-version: 3.12
- run: pip install pyvista
- run: python -c "import pyvista;pyvista.Sphere().plot(screenshot='${{ matrix.os }}-sphere.png')"
- uses: actions/upload-artifact@v4
with:
name: sphere
path: ${{ matrix.os }}-sphere.png
Expand Down

0 comments on commit 58b621b

Please sign in to comment.