forked from ansible-community/antsibull-build
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.61 KB
/
antsibull-lint.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
name: Test antsibull-lint subcommands
on:
push:
branches: [main]
pull_request:
branches: [main]
# Run once per week (Monday at 04:00 UTC)
schedule:
- cron: '0 4 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install . coverage codecov
- name: Check out community.general's stable-4 branch
uses: actions/checkout@v2
with:
repository: ansible-collections/community.general
ref: stable-4
path: community.general
- name: antsibull-lint collection-docs
run: |
coverage run -p --source antsibull -m antsibull.cli.antsibull_lint collection-docs community.general
- name: antsibull-lint changelog-yaml (community.general changelog)
run: |
coverage run -p --source antsibull -m antsibull.cli.antsibull_lint changelog-yaml community.general/changelogs/changelog.yaml
- name: antsibull-lint changelog-yaml (own changelog)
run: |
coverage run -p --source antsibull -m antsibull.cli.antsibull_lint changelog-yaml --no-semantic-versioning changelogs/changelog.yaml
- name: Lint changelog fragments
run: |
antsibull-changelog lint
- name: Combine and upload coverage stats
run: |
coverage combine .coverage.*
coverage report
coverage xml -i
codecov