forked from DamengDB/dmPython
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 988 Bytes
/
Copy pathworkflow-lint.yml
File metadata and controls
42 lines (33 loc) · 988 Bytes
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
name: Workflow Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install lint dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pyyaml build twine
- name: Parse workflow YAML files
run: |
python scripts/check_workflow_yaml.py
- name: Run actionlint
uses: rhysd/actionlint@v1.7.11
- name: Check version consistency
run: |
python scripts/check_version_consistency.py
- name: Check third-party patch consistency
run: |
python scripts/check_third_party_patch.py
- name: Packaging metadata check (sdist)
run: |
python -m build --sdist --outdir /tmp/dist_meta
python -m twine check /tmp/dist_meta/*