Skip to content

Commit 3d08e48

Browse files
committed
run python tests if gh actions
1 parent 82805c1 commit 3d08e48

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/python_verify.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- 'environment/**/*.py'
1010
- 'tests/**/*.py'
1111
- 'jenkins/pipelines/**/*.py'
12+
- '**/pyproject.toml'
13+
- '**/pytest.ini'
14+
- '.github/workflows/*python*'
1215
pull_request:
1316
branches:
1417
- "**"
@@ -18,6 +21,9 @@ on:
1821
- 'environment/**/*.py'
1922
- 'tests/**/*.py'
2023
- 'jenkins/pipelines/**/*.py'
24+
- '**/pyproject.toml'
25+
- '**/pytest.ini'
26+
- '.github/workflows/*python*'
2127

2228
jobs:
2329
mypy:

.github/workflows/verify_python.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
#!/bin/bash -e
1+
#!/bin/bash
2+
set -eu -o pipefail
23

3-
python3 -m venv venv
4+
uv venv venv
45
source ./venv/bin/activate
5-
pip install --upgrade pip
6-
pip install mypy
7-
pip install pytest pytest-asyncio
8-
pip install types-requests types-Deprecated types-tqdm types-paramiko types-netifaces types-psutil click
9-
pip install ./client
6+
uv pip install --upgrade uv mypy pytest pytest-asyncio types-requests types-Deprecated types-tqdm types-paramiko types-netifaces types-psutil click ./client
107
echo "Checking tests files..."
118
python -m mypy tests --exclude=venv
129
echo "Checking client files (including smoke tests)..."

0 commit comments

Comments
 (0)