-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (35 loc) · 1.06 KB
/
ci.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
---
name: "CI"
concurrency: # Cancel any existing runs of this workflow for this same PR
group: "{% raw %}${{ github.workflow }}-${{ github.ref }}{% endraw %}"
cancel-in-progress: true
on: # yamllint disable-line rule:truthy rule:comments
push:
branches:
- "main"
- "develop"
tags:
- "v*"
pull_request: ~
jobs:
qa:
runs-on: "ubuntu-22.04"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v6"
with:
poetry-version: "1.8.5"
- name: "Linting: ruff"
run: "poetry run invoke ruff"
- name: "Linting: yamllint"
run: "poetry run invoke yamllint"
- name: "Linting: pylint"
run: "poetry run invoke pylint"
- name: "Docs: mkdocs build check"
run: "poetry run invoke build-and-check-docs"
- name: "Testing: poetry lock"
run: "poetry run invoke lock --check"
- name: "Testing: unittest"
run: "poetry run invoke unittest"