diff options
author | Arif Ali <arif.ali@canonical.com> | 2024-01-15 18:51:04 -0800 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2024-04-12 11:50:48 -0400 |
commit | 93bcf51257ec4ce2b97c942e51e56546ce8cd0cd (patch) | |
tree | db1e835f5de49918553281726d86f4660731313e /.cirrus.yml | |
parent | 4069af4bca5d20662389200f0d426d2d31f054e8 (diff) | |
download | sos-93bcf51257ec4ce2b97c942e51e56546ce8cd0cd.tar.gz |
[testing] Add most testing via tox.ini
Consolidate testing, so that things can be run from CLI, CI and
various other means in a consistent way by using tox.
* Updated all the flake8 tests in the tests folder.
* Added pylint as a neutral test so that we can work on this in stages
and have some collaboration on what we test and don't
* The tox tests for unit, stageone, stagetwo testing makes is easier
for users to know how to run tests, and not have to do things
manually
* Using tox for CI doesn't make sense, as that will create virtual
envs and will disregard system/snap based python modules so may not
work
Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 7bd019bd..48de6c3d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -60,7 +60,21 @@ flake8_task: name: "Flake8 linting test" container: image: alpine/flake8:latest - flake_script: flake8 sos + setup_script: | + apk update + apk add --upgrade py3-tox + flake_script: tox -e flake8 + +pylint_task: + alias: "pylint_test" + name: "pylint linting test" + allow_failures: true + container: + image: "python:latest" + setup_script: | + apt update + apt -y install tox + pylint_script: tox -e pylint # Run a check on newer upstream python versions to check for possible # breaks/changes in common modules. This is not meant to check any of the actual |