-
Notifications
You must be signed in to change notification settings - Fork 6
99 lines (86 loc) · 2.44 KB
/
ci.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
name: tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
tags: ["v*"]
pull_request: {}
workflow_dispatch:
jobs:
check-manifest:
name: Check Manifest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip3 install check-manifest && check-manifest
test:
uses: pyapp-kit/workflows/.github/workflows/test-pyrepo.yml@v2
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
coverage-upload: artifact
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: ubuntu-latest
python-version: "3.8"
test-minreqs:
uses: pyapp-kit/workflows/.github/workflows/test-pyrepo.yml@main
with:
os: ubuntu-latest
python-version: ${{ matrix.python-version }}
pip-install-min-reqs: true
coverage-upload: artifact
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"]
upload_coverage:
if: always()
needs: [test, test-minreqs]
uses: pyapp-kit/workflows/.github/workflows/upload-coverage.yml@v2
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test-dependents:
uses: pyapp-kit/workflows/.github/workflows/test-dependents.yml@v2
with:
os: macos-13
python-version: "3.11"
dependency-repo: ${{ matrix.repo }}
dependency-extras: "test"
post-install-cmd: "mmcore install"
qt: ${{ matrix.qt }}
strategy:
fail-fast: false
matrix:
include:
- repo: pymmcore-plus/pymmcore-plus
qt: "pyside6"
- repo: pymmcore-plus/pymmcore-widgets
qt: "pyqt6"
# - repo: pymmcore-plus/napari-micromanager
# qt: "pyqt5"
deploy:
needs: test
if: ${{ github.repository == 'pymmcore-plus/useq-schema' && contains(github.ref, 'tags') }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 👷 Build
run: pipx run build
- name: 🚢 Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: "./dist/*"