File tree Expand file tree Collapse file tree 4 files changed +26
-12
lines changed
Expand file tree Collapse file tree 4 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,17 @@ jobs:
7474 python -m pip install --upgrade pip
7575 pip install -r requirements.txt
7676
77- - name : Run tests
77+ - name : Compile and validate
7878 run : |
79- python -m py_compile runner.py test_script.py
80- if [ -f "tests/test_*.py" ]; then
81- python -m pytest tests/ -v
79+ python -m py_compile runner.py
80+ python -c "import runner; print(f'✅ Code compiles successfully')"
81+
82+ - name : Run unit tests
83+ run : |
84+ if [ -f "pytest.ini" ] && command -v pytest &> /dev/null; then
85+ python -m pytest tests/ -v --tb=short 2>&1 | head -100
86+ else
87+ echo "Skipping tests (pytest not available or no tests configured)"
8288 fi
8389
8490 - name : Validate package import
Original file line number Diff line number Diff line change @@ -100,12 +100,19 @@ jobs:
100100 pip install -r requirements.txt
101101 pip install pytest pytest-cov
102102
103- - name : Compile Python
104- run : python -m py_compile runner.py test_script.py
103+ - name : Compile and validate
104+ run : |
105+ python -m py_compile runner.py
106+ python -c "import runner; print(f'✅ Code compiles: {runner.__version__}')"
105107
106- - name : Run tests
108+ - name : Run unit tests
109+ continue-on-error : true
107110 run : |
108- pytest test_script.py -v --tb=short || true
111+ if [ -f "pytest.ini" ]; then
112+ python -m pytest tests/ -v --tb=short 2>&1 | head -100
113+ else
114+ echo "No tests configured"
115+ fi
109116
110117 build-python3 :
111118 needs : test
@@ -118,11 +125,12 @@ jobs:
118125 uses : actions/setup-python@v4
119126 with :
120127 python-version : ' 3.11'
128+ cache : ' pip'
121129
122130 - name : Install dependencies
123131 run : |
124- python -m pip install --upgrade pip
125- pip install -r requirements.txt
132+ python -m pip install --upgrade pip setuptools
133+ pip install -r requirements.txt 2>&1 | grep -v "already satisfied" || true
126134
127135 - name : Create Python3 bundle
128136 run : |
Original file line number Diff line number Diff line change 1010- workflows: DAG-based workflow orchestration
1111"""
1212
13- __version__ = "7.0.5 "
13+ __version__ = "7.0.6 "
1414__author__ = "Python Script Runner Contributors"
1515
1616try :
Original file line number Diff line number Diff line change 3434# Read version from runner.py
3535with open (os .path .join (os .path .dirname (__file__ ), "runner.py" )) as f :
3636 version_match = re .search (r'__version__ = ["\']([^"\']*)["\']' , f .read ())
37- version = version_match .group (1 ) if version_match else "7.0.5 "
37+ version = version_match .group (1 ) if version_match else "7.0.6 "
3838
3939# Read README for long description
4040readme_file = os .path .join (os .path .dirname (__file__ ), "README.md" )
You can’t perform that action at this time.
0 commit comments