forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (64 loc) · 1.6 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Checks
on:
push:
pull_request:
branches:
- main
- 'release/**'
- 'develop/**'
jobs:
format:
runs-on: ubuntu-latest
container: ghcr.io/acts-project/format10:v29
steps:
- uses: actions/checkout@v3
- name: Check
run: >
git config --global safe.directory "$GITHUB_WORKSPACE"
&& CI/check_format .
- uses: actions/upload-artifact@v3
if: failure()
with:
name: changed
path: changed
format-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- name: Install black
run: pip install black==22.3.0
- name: Run black format check
run: black --check . --extend-exclude ".*thirdparty.*"
license:
runs-on: ubuntu-latest
container: python:alpine3.6
steps:
- uses: actions/checkout@v3
- name: Check
run: >
apk add --no-cache git
&& CI/check_license.py . --exclude "*thirdparty/*"
include_guards:
runs-on: ubuntu-latest
container: python:alpine3.6
steps:
- uses: actions/checkout@v3
- name: Check
run: >
CI/check_include_guards.py . --fail-global --exclude "*thirdparty/*"
boost_test_macro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check
run: >
CI/check_boost_test_macro.sh
smearing_config:
runs-on: ubuntu-latest
container: python:alpine3.6
steps:
- uses: actions/checkout@v3
- name: Check
run: >
CI/check_smearing_config.py .