debian-koji-osbuild/.github/workflows/ci.yml
dependabot[bot] 1389c20247 build(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 00:24:57 +01:00

56 lines
1.2 KiB
YAML

name: Tests
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
pylint:
name: Source code linting
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v3
- name: "Run pylint"
uses: osbuild/koji-osbuild/test@main
with:
run: |
pylint plugins/**/*.py test/**/*.py
unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v3
- 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@v3
- name: "Run ShellCheck"
uses: ludeeus/action-shellcheck@1.1.0
with:
severity: warning
codespell:
name: "Spell check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@master
with:
skip: ./.git,build