From 31fe7f7e06a8a31ef3d847341863356d394e26ed Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 6 Jul 2023 15:39:13 +0200 Subject: [PATCH] [CI] add woodpecker CI --- .woodpecker/lint.yml | 6 ++++++ .woodpecker/test-integration.yml | 9 +++++++++ .woodpecker/test.yml | 17 +++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .woodpecker/lint.yml create mode 100644 .woodpecker/test-integration.yml create mode 100644 .woodpecker/test.yml diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 00000000..dce8b5e2 --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,6 @@ +steps: + mypy: + image: python:3 + script: + - pip3 install mypy types-setuptools + - mypy slixmpp diff --git a/.woodpecker/test-integration.yml b/.woodpecker/test-integration.yml new file mode 100644 index 00000000..5ed4f650 --- /dev/null +++ b/.woodpecker/test-integration.yml @@ -0,0 +1,9 @@ +steps: + test_integration: + image: "python:3.11" + secrets: [ci_account1, ci_account1_password, ci_account2, ci_account2_password] + commands: + - apt-get update + - apt-get install -y python3-pip cython3 gpg + - pip3 install emoji aiohttp aiodns + - ./run_integration_tests.py diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 00000000..776c403d --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,17 @@ +steps: + unit_tests: + image: "python:${TAG}" + commands: + - apt-get update + - apt-get install -y python3 python3-pip cython3 gpg + - pip3 install emoji aiohttp cryptography + - ./run_tests.py + +matrix: + TAG: + - "3.7" + - "3.9" + - "3.8" + - "3.10" + - "3.11" + - "3.12"