-
Notifications
You must be signed in to change notification settings - Fork 14
34 lines (32 loc) · 898 Bytes
/
ci.yml
File metadata and controls
34 lines (32 loc) · 898 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
34
name: Continuous Integration
on:
push:
branches: [master]
pull_request:
types: [opened, reopened, synchronize]
jobs:
lint_and_test:
name: Lint and test
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install python tools
run: pipx install flake8 pyright black pyflakes pytest cfbs cfengine
- 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 python code
run: ./ci/linting.sh
- name: Run promise type tests
run: pytest promise-types/ -v
- name: Lint policy with CFEngine CLI
run: cfengine lint --strict no ./