-
-
Notifications
You must be signed in to change notification settings - Fork 410
48 lines (40 loc) · 1.25 KB
/
reusable_pip_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test installed from pip
on:
workflow_call:
jobs:
test_pip_install:
name: ubuntu-latest 3.9 pip install
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
path: napari-from-github
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: "pip"
cache-dependency-path: napari-from-github/pyproject.toml
- uses: tlambert03/setup-qt-libs@v1
- name: Install this commit
run: |
pip install --upgrade pip
pip install ./napari-from-github[pyqt,testing]
env:
PIP_CONSTRAINT: napari-from-github/resources/constraints/constraints_py3.9.txt
- name: uninstall numba
run: |
pip uninstall -y numba
- name: Test
uses: aganders3/headless-gui@v2
with:
run: |
python -m pytest --pyargs napari --color=yes --basetemp=.pytest_tmp
python -m pytest --pyargs napari_builtins --color=yes --basetemp=.pytest_tmp
- name: Upload test artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: test artifacts pip install
path: .pytest_tmp