mirror of
https://github.com/containers/udica
synced 2024-05-24 01:46:11 +02:00
61e4adfd7c
Signed-off-by: Renovate Bot <bot@renovateapp.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: checks
|
|
on: [push, pull_request]
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: sudo apt-get update -y
|
|
- run: sudo apt-get install -y python3-pip python3-setuptools
|
|
- run: sudo pip3 install black pyflakes
|
|
- run: make format-check
|
|
- run: make lint
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
image:
|
|
# test on Fedora Rawhide
|
|
- quay.io/fedora/fedora:rawhide
|
|
# test on the latest stable release of Fedora
|
|
- quay.io/fedora/fedora:latest
|
|
# test on the stable release of Centos stream 8
|
|
- quay.io/centos/centos:stream8
|
|
# test on the latest stable release of Centos stream
|
|
- quay.io/centos/centos:stream9
|
|
container:
|
|
image: ${{ matrix.image }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: rpm -q python3 || dnf install --nogpgcheck -y python3
|
|
- run: rpm -q git || dnf install --nogpgcheck -y git
|
|
- run: python3 -m unittest -v tests/test_unit.py
|