forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
141 lines (130 loc) · 3.88 KB
/
test_comprehensive.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# The Comprehensive test suite, which will be run anytime anything is merged into main.
# See test_pull_request.yml for the tests that will be run
name: Comprehensive Test
on:
push:
branches:
- main
- "v*x"
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
paths:
- '.github/workflows/test_comprehensive.yml'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
COLUMNS: 120
concurrency:
group: comprehensive-test
jobs:
manifest:
name: Check Manifest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Set up Python 3.11"
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install check-manifest
- name: Check Manifest
run: check-manifest
build_wheel:
name: Build wheel
uses: ./.github/workflows/reusable_build_wheel.yml
test:
name: ${{ matrix.platform }}
uses: ./.github/workflows/reusable_run_tox_test.yml
needs: build_wheel
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
backend: [pyqt5, pyside2]
include:
- python: "3.10"
platform: macos-latest
backend: pyqt5
# test with minimum specified requirements
- python: "3.9"
platform: ubuntu-20.04
backend: pyqt5
MIN_REQ: 1
# test without any Qt backends
- python: "3.9"
platform: ubuntu-20.04
backend: headless
- python: "3.12"
platform: ubuntu-latest
backend: pyqt6
tox_extras: "testing_extra"
- python: "3.11"
platform: ubuntu-latest
backend: pyside6
tox_extras: "testing_extra"
exclude:
- python: "3.11"
backend: pyside2
- python: "3.12"
backend: pyside2
- platform: windows-latest
backend: pyside2
with:
python_version: ${{ matrix.python }}
platform: ${{ matrix.platform }}
qt_backend: ${{ matrix.backend }}
min_req: ${{ matrix.MIN_REQ }}
coverage: cov
tox_extras: ${{ matrix.tox_extras }}
test_pip_install:
name: pip install
uses: ./.github/workflows/reusable_pip_test.yml
test_examples:
name: test examples
uses: ./.github/workflows/reusable_run_tox_test.yml
needs: build_wheel
with:
toxenv: py39-linux-pyside2-examples-cov
timeout: 60
python_version: 3.9
constraints_suffix: _examples
coverage: cov
coverage_report:
if: ${{ always() }}
needs:
- test
- test_examples
uses: ./.github/workflows/reusable_coverage_upload.yml
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
synchronize_bot_repository:
name: Synchronize bot repository
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.repository == 'napari/napari'
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GHA_TOKEN_BOT_REPO_WORKFLOW }}
- name: Synchronize bot repository
run: |
git remote add napari-bot https://github.com/napari-bot/napari.git
git fetch napari-bot
git push --force --set-upstream napari-bot main
- name: Report Failures
if: ${{ failure() }}
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_ID: ${{ github.run_id }}
TITLE: '[bot-repo] bot repo update is failing'
with:
filename: .github/BOT_REPO_UPDATE_FAIL_TEMPLATE.md
update_existing: true