Jaromír Wysoglad 53b335aaca
Add automated unit testing and a set of tests (#9)
* Add unit testing

* Fix code according to CI

This includes:
  - formating changes
  - rewording of some doc strings
  - adding support to {label!~'value'} in rbac

* Add unit tests automation

* Fix CI automation

* Add requirements.txt
2023-09-05 14:54:33 +02:00

24 lines
412 B
YAML

name: unit_tests
on:
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
matrix:
env:
- pep8
- py39
- py311
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: ./tools/install_deps.sh
- name: Run tox
run: tox -e ${{ matrix.env }}