mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 07:55:31 +00:00
CP-2205 - Run install and tests for all modules (#24)
* CP-2205 - build and test * CP-2205 - Force failure * CP-2205 - Revert failure and run on PR
This commit is contained in:
parent
9ef907ab7b
commit
8a4086010a
29
.github/workflows/python.yaml
vendored
Normal file
29
.github/workflows/python.yaml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Python CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user