Skip to content

Commit 03e9093

Browse files
committed
Experimenting to see how easy it is to run pytest in GitHub Actions
1 parent a41af46 commit 03e9093

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests-with-pip-install:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.11
14+
- name: Install system dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y libglu1-mesa libxrender1 libxkbcommon-x11-0
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install .[dev]
21+
python -m pip install pytest-xvfb
22+
- name: Run tests
23+
run: python -m pytest -v

0 commit comments

Comments
 (0)