File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : [ main ]
88
99jobs :
10- test :
10+ unit-tests :
1111 runs-on : ubuntu-latest
12-
12+
1313 steps :
1414 - uses : actions/checkout@v3
15-
15+
1616 - name : Set up Python 3.12
1717 uses : actions/setup-python@v4
1818 with :
1919 python-version : ' 3.12'
20-
20+
2121 - name : Install dependencies
2222 run : |
2323 python -m pip install --upgrade pip
2424 pip install -e .
2525 pip install pytest pytest-cov psutil
26-
27- - name : Run tests
26+
27+ - name : Run unit tests
2828 run : |
29- pytest tests/ -v --cov=adaptive_classifier --cov-report=xml --cov-report=term
30-
29+ pytest tests/ -v --cov=adaptive_classifier --cov-report=xml --cov-report=term -m "not integration"
30+
3131 - name : Upload coverage to Codecov
3232 uses : codecov/codecov-action@v3
3333 with :
3434 file : ./coverage.xml
3535 flags : unittests
3636 name : codecov-umbrella
37- fail_ci_if_error : false
37+ fail_ci_if_error : false
38+
39+ integration-tests :
40+ runs-on : ubuntu-latest
41+ needs : unit-tests # Only run if unit tests pass
42+ timeout-minutes : 30 # Generous timeout for model downloads
43+
44+ steps :
45+ - uses : actions/checkout@v3
46+
47+ - name : Set up Python 3.12
48+ uses : actions/setup-python@v4
49+ with :
50+ python-version : ' 3.12'
51+
52+ - name : Install dependencies
53+ run : |
54+ python -m pip install --upgrade pip
55+ pip install -e .
56+ pip install pytest psutil
57+
58+ - name : Run integration tests
59+ run : |
60+ pytest tests/test_enterprise_classifiers_integration.py -v -m "integration" --tb=short
61+
62+ - name : Integration test summary
63+ if : always()
64+ run : |
65+ echo "Integration tests completed. Check logs above for detailed results."
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ minversion = "7.0"
1212addopts = " -ra -q"
1313testpaths = [" tests" ]
1414python_files = [" test_*.py" ]
15+ markers = [
16+ " integration: marks tests as integration tests (deselect with '-m \" not integration\" ')" ,
17+ " slow: marks tests as slow running" ,
18+ ]
1519filterwarnings = [
1620 " ignore::DeprecationWarning" ,
1721 " ignore::UserWarning" ,
You can’t perform that action at this time.
0 commit comments