From abbc5de42a7d5682135bc4bed8e98be4c6312f89 Mon Sep 17 00:00:00 2001 From: Phellippe Lima Date: Wed, 26 Jun 2024 13:56:34 +0100 Subject: [PATCH] CP-2205 - build and test --- .github/workflows/python.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/python.yaml diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml new file mode 100644 index 00000000..cfd2a6c2 --- /dev/null +++ b/.github/workflows/python.yaml @@ -0,0 +1,25 @@ +name: Python CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'pip' + + - name: Install core module + run: pip install -e thousandeyes-sdk-core + + - name: Install and test modules + run: | + pip install pytest + for module in $(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" ! -name "thousandeyes-sdk-core" | cut -c 3-); do + pip install -e $module + pytest $module + done