Skip to content

Commit 6293f86

Browse files
committed
add codespell ci
rename clang_and_doxy to pre-commit to also include codespell, required to pass before running build
1 parent 0ada6bb commit 6293f86

File tree

4 files changed

+56
-30
lines changed

4 files changed

+56
-30
lines changed

.codespell/exclude-file.txt

Whitespace-only changes.

.codespell/ignore-words.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
synopsys
2+
sie
3+
tre
4+
hsi
5+
fro
6+
dout
7+
mot
8+
te
9+
inout

.codespellrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to 'ignore-words.txt' (one word per line).
4+
# Or copy & paste the whole problematic line to 'exclude-file.txt'
5+
ignore-words = .codespell/ignore-words.txt
6+
exclude-file = .codespell/exclude-file.txt
7+
check-filenames =
8+
check-hidden =
9+
count =
10+
skip = .git

.github/workflows/githubci.yml

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,46 @@ name: Build
22

33
on: [pull_request, push, repository_dispatch]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
59
jobs:
10+
pre-commit:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Setup Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.x'
17+
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Run codespell
22+
uses: codespell-project/actions-codespell@master
23+
24+
- name: Checkout adafruit/ci-arduino
25+
uses: actions/checkout@v3
26+
with:
27+
repository: adafruit/ci-arduino
28+
path: ci
29+
30+
- name: pre-install
31+
run: bash ci/actions_install.sh
32+
33+
- name: clang
34+
run: python3 ci/run-clang-format.py -r src/arduino
35+
36+
- name: doxygen
37+
env:
38+
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
39+
PRETTYNAME : "Adafruit TinyUSB Library"
40+
run: bash ci/doxy_gen_and_deploy.sh
41+
642
build:
743
runs-on: ubuntu-latest
44+
needs: pre-commit
845
strategy:
946
fail-fast: false
1047
matrix:
@@ -47,33 +84,3 @@ jobs:
4784

4885
- name: test platforms
4986
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
50-
51-
clang_and_doxy:
52-
runs-on: ubuntu-latest
53-
needs: build
54-
steps:
55-
- name: Setup Python
56-
uses: actions/setup-python@v4
57-
with:
58-
python-version: '3.x'
59-
60-
- name: Checkout code
61-
uses: actions/checkout@v3
62-
63-
- name: Checkout adafruit/ci-arduino
64-
uses: actions/checkout@v3
65-
with:
66-
repository: adafruit/ci-arduino
67-
path: ci
68-
69-
- name: pre-install
70-
run: bash ci/actions_install.sh
71-
72-
- name: clang
73-
run: python3 ci/run-clang-format.py -r src/arduino
74-
75-
- name: doxygen
76-
env:
77-
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
78-
PRETTYNAME : "Adafruit TinyUSB Library"
79-
run: bash ci/doxy_gen_and_deploy.sh

0 commit comments

Comments
 (0)