forked from Lightning-AI/torchmetrics
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.13 KB
/
ci-checks.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
name: General checks
on:
push:
branches: [master, "release/*"]
pull_request:
branches: [master, "release/*"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
jobs:
check-code:
uses: Lightning-AI/utilities/.github/workflows/[email protected]
with:
actions-ref: main
extra-typing: typing
check-schema:
uses: Lightning-AI/utilities/.github/workflows/[email protected]
check-package:
if: github.event.pull_request.draft == false
uses: Lightning-AI/utilities/.github/workflows/[email protected]
with:
actions-ref: main
artifact-name: dist-packages-${{ github.sha }}
import-name: "torchmetrics"
testing-matrix: |
{
"os": ["ubuntu-20.04", "macos-11", "windows-2022"],
"python-version": ["3.8", "3.10"]
}
check-md-links:
uses: Lightning-AI/utilities/.github/workflows/[email protected]
with:
config-file: ".github/workflows/markdown.links.config.json"