-
Notifications
You must be signed in to change notification settings - Fork 16
63 lines (55 loc) · 1.47 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Tests
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
pylint:
name: "🐍 Lint"
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:36
steps:
- name: Install test dependencies
run: dnf -y install python3-boto3 python3-flexmock python3-httpretty python3-jsonschema python3-koji python3-pylint python3-requests
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Analysing the code with pylint
run: |
python3 -m pylint plugins/**/*.py test/**/*.py
unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v4
- name: "Run unit tests"
uses: osbuild/koji-osbuild/test@main
with:
run: |
pytest --cov-report=xml --cov=osbuild test/unit/
- name: Send coverage to codecov.io
run: bash <(curl -s https://codecov.io/bash)
shellcheck:
name: "Shellcheck"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v4
- name: "Run ShellCheck"
uses: ludeeus/[email protected]
with:
severity: warning
codespell:
name: "Spell check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
with:
skip: ./.git,build,LICENSE