Skip to content

Commit afa0d2f

Browse files
Update ci.yml
1 parent 60a28cc commit afa0d2f

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Basic Code Validation
22

33
on:
44
push:
@@ -7,34 +7,32 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
test:
10+
validate:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
python-version: [3.8, 3.9]
15-
1612
steps:
1713
- uses: actions/checkout@v3
18-
- name: Set up Python ${{ matrix.python-version }}
14+
- name: Set up Python
1915
uses: actions/setup-python@v4
2016
with:
21-
python-version: ${{ matrix.python-version }}
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install flake8 pytest
26-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27-
- name: Lint with flake8
17+
python-version: '3.8'
18+
- name: Check Python syntax
2819
run: |
29-
# stop the build if there are Python syntax errors or undefined names
30-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31-
# exit-zero treats all errors as warnings
32-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33-
- name: Run tests
20+
# Simple syntax check on Python files
21+
find . -name "*.py" -type f -exec python -m py_compile {} \;
22+
- name: Verify project structure
3423
run: |
35-
# Run basic tests if they exist
36-
if [ -d "tests" ]; then
37-
pytest
24+
# Check that critical directories exist
25+
echo "Verifying project structure..."
26+
if [ -d "src" ]; then
27+
echo "✓ src directory found"
3828
else
39-
echo "No tests directory found. Skipping tests."
40-
fi
29+
echo "⚠️ src directory not found"
30+
fi
31+
if [ -f "requirements.txt" ]; then
32+
echo "✓ requirements.txt found"
33+
else
34+
echo "⚠️ requirements.txt not found"
35+
fi
36+
- name: Success
37+
run: |
38+
echo "✅ Basic validation completed successfully"

0 commit comments

Comments
 (0)