-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (46 loc) · 1.28 KB
/
pr-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
40
41
42
43
44
45
46
47
48
name: PR Checks
on:
pull_request:
branches:
- main
- 'release/**'
jobs:
check-version:
name: Check version bumped
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Initialize the environment
uses: ./.github/actions/initialize
- name: Check version
run: python scripts/validate_version_bump.py
linting:
name: Run linting with flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Initialize the environment
uses: ./.github/actions/initialize
- name: Lint the source directory
run: flake8 gemd
check-deprecated:
name: Find code marked for removal in this version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Initialize the environment
uses: ./.github/actions/initialize
- name: Deprecated check
run: derp . gemd/__version__.py
check-docs:
name: Check docs for warnings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Initialize the environment
uses: ./.github/actions/initialize
with:
documentation: 'true'
- name: Build Docs
continue-on-error: true
run: make -C docs/ html SPHINXOPTS='-W --keep-going'