-
Notifications
You must be signed in to change notification settings - Fork 14
89 lines (77 loc) · 2.45 KB
/
ci-use-checks.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
name: Apply checks
on:
push:
branches: [main, "release/*"]
pull_request:
branches: [main, "release/*"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}
jobs:
check-typing:
uses: ./.github/workflows/check-typing.yml
with:
actions-ref: ${{ github.sha }} # use local version
extra-typing: "typing"
check-precommit:
uses: ./.github/workflows/check-precommit.yml
check-schema-latest:
uses: ./.github/workflows/check-schema.yml
with:
azure-dir: ""
check-schema-fixed:
uses: ./.github/workflows/check-schema.yml
with:
actions-ref: ${{ github.sha }} # use local version
azure-dir: ""
check-schema:
runs-on: ubuntu-latest
# just aggregation of the previous two jobs
needs: ["check-schema-latest", "check-schema-fixed"]
steps:
- run: echo "done"
check-package:
uses: ./.github/workflows/check-package.yml
with:
actions-ref: ${{ github.sha }} # use local version
artifact-name: dist-packages-${{ github.sha }}
import-name: "lightning_utilities"
build-matrix: |
{
"os": ["ubuntu-22.04"],
"python-version": ["3.10"]
}
testing-matrix: |
{
"os": ["ubuntu-22.04", "macos-12", "windows-2022"],
"python-version": ["3.8", "3.12"]
}
check-package-extras:
uses: ./.github/workflows/check-package.yml
with:
actions-ref: ${{ github.sha }} # use local version
artifact-name: dist-packages-${{ github.sha }}
import-name: "lightning_utilities"
install-extras: "[cli]"
# todo: when we have a module with depence on extra, replace it
# tried to import `lightning_utilities.cli.__main__` but told me it does not exits
import-extras: "import fire"
testing-matrix: |
{
"os": ["ubuntu-22.04", "macos-12", "windows-2022"],
"python-version": ["3.10"]
}
check-docs:
uses: ./.github/workflows/check-docs.yml
with:
requirements-file: "requirements/_docs.txt"
install-tex: true
check-md-links-default:
uses: ./.github/workflows/check-md-links.yml
with:
base-branch: main
check-md-links-w-config:
uses: ./.github/workflows/check-md-links.yml
with:
base-branch: main
config-file: ".github/markdown.links.config.json"