-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (31 loc) · 832 Bytes
/
ci.yml
File metadata and controls
33 lines (31 loc) · 832 Bytes
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
name: Continuous Integration
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
unit_tests:
name: Run Unit Tests
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update -y && sudo apt-get install -y python3
pip install flake8 pyright black pyflakes
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install cfbs
run: pip install cfbs
- name: Check the status with cfbs
run: cfbs status
- name: Validate with cfbs
run: cfbs validate
- name: Check the formatting
run: cfbs --check pretty ./cfbs.json
- name: Linting
run: ./ci/linting.sh