From 040265157730ba5a09a082d1108558dfd13fcbef Mon Sep 17 00:00:00 2001 From: Adam Saleh Date: Jul 12 2021 20:17:43 +0000 Subject: Add CI on PR with zuul --- diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..f86577b --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,12 @@ +--- +- job: + name: tox-f33 + run: ci/tox.yaml + nodeset: + nodes: + name: test-node + label: pod-python-f33 +- project: + check: + jobs: + - tox-f33 diff --git a/ci/tox.yaml b/ci/tox.yaml new file mode 100644 index 0000000..69694ff --- /dev/null +++ b/ci/tox.yaml @@ -0,0 +1,15 @@ +--- +- hosts: all + tasks: + - name: List project directory on the test system + command: ls -al {{ansible_user_dir}}/{{zuul.project.src_dir}} + - name: install dependencies + become: yes + package: + name: + - python3-tox + state: present + - name: run pytest + command: + chdir: '{{ansible_user_dir}}/{{zuul.project.src_dir}}' + cmd: python -m tox diff --git a/mypy.cfg b/mypy.cfg new file mode 100644 index 0000000..66a7bac --- /dev/null +++ b/mypy.cfg @@ -0,0 +1,8 @@ +# Global options: + +[mypy] +python_version = 3.6 +warn_return_any = True +warn_unused_configs = True +ignore_missing_imports = True +strict_optional = True