-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (101 loc) · 2.7 KB
/
selftest.yaml
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
name: selftest
on:
pull_request:
push:
branches:
- release/*
- test
jobs:
dist-pure-python:
name: Build pure Python dist
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install flit
run: python -m pip install flit
- name: Build dist
run: |
cd example-pure-python
python -m flit build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist-pure-python
path: example-pure-python/dist
dist-manylinux:
name: Build manylinux dist
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install maturin
run: python -m pip install maturin
- name: Build dist
run: |
cd example-manylinux
python -m maturin build
python -m maturin sdist
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist-manylinux
path: example-manylinux/target/wheels
pure-python-build:
name: Pure Python / Build
needs: dist-pure-python
uses: ./.github/workflows/build.yaml
with:
dist: dist-pure-python
artifact: docs-pure-python
manylinux-build:
name: Manylinux / Build
needs: dist-manylinux
uses: ./.github/workflows/build.yaml
with:
dist: dist-manylinux
artifact: docs-manylinux
extras-build:
name: Extras / Build
needs: dist-pure-python
uses: ./.github/workflows/build.yaml
with:
dist: dist-pure-python
extras: x,y
artifact: docs-extras
extras-check:
name: Extras / Check
needs: extras-build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: docs-extras
path: target/sphinx
- name: Has typing-extensions
run: grep -q HAS_TYPING_EXTENSIONS -R target/sphinx
- name: Has tomli
run: grep -q HAS_TOMLI -R target/sphinx
requirements-build:
name: Requirements / Build
needs: dist-pure-python
uses: ./.github/workflows/build.yaml
with:
dist: dist-pure-python
requirements: 'tomli typing-extensions'
artifact: docs-requirements
requirements-check:
name: Requirements / Check
needs: requirements-build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: docs-requirements
path: target/sphinx
- name: Has typing-extensions
run: grep -q HAS_TYPING_EXTENSIONS -R target/sphinx
- name: Has tomli
run: grep -q HAS_TOMLI -R target/sphinx