1+ # Copyright (c) 2024-2026 CRS4
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
115name : 🧪 CI Pipeline 1 -- Testing
216
317# Controls when the action will run. Triggers the workflow on push or pull request
2539 FORCE_COLOR : " 1" # Force color output in CI
2640
2741jobs :
28- # Verifies pep8, pyflakes and circular complexity
29- flake8 :
30- name : 🚨 Lint Python Code
42+ # Verifies pep8, pyflakes, circular complexity, and spelling
43+ lint :
44+ name : 🚨 Lint and spellcheck
3145 runs-on : ubuntu-latest
3246 steps :
3347 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -39,14 +53,16 @@ jobs:
3953 python-version : ${{ env.PYTHON_VERSION }}
4054 - name : 🔽 Install flake8
4155 run : pip install flake8
42- - name : ⌛ Run checks
56+ - name : ⌛ Lint Python code
4357 run : flake8 -v rocrate_validator tests
58+ - name : ⌛ Spell check code and profiles (covers Python and SHACL)
59+ 4460
4561 # Runs the tests
4662 test :
4763 name : ⌛ Run tests
4864 runs-on : ubuntu-latest
49- needs : [flake8 ]
65+ needs : [lint ]
5066 steps :
5167 - name : ⬇️ Checkout
5268 uses : actions/checkout@v4
0 commit comments