Skip to content

Commit a945dcd

Browse files
committed
clean up tests
1 parent b258d14 commit a945dcd

File tree

5 files changed

+14
-307
lines changed

5 files changed

+14
-307
lines changed

.github/workflows/comprehensive-tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ jobs:
1313
test-matrix:
1414
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
1515
runs-on: ${{ matrix.os }}
16+
timeout-minutes: 45
1617
strategy:
1718
fail-fast: false
1819
matrix:
1920
os: [ubuntu-latest, macos-latest]
20-
python-version: ["3.9", "3.10", "3.11", "3.12"]
21+
python-version: ["3.10", "3.11", "3.12"]
2122
exclude:
2223
# Skip some combinations to reduce CI time
23-
- os: macos-latest
24-
python-version: "3.9"
2524
- os: macos-latest
2625
python-version: "3.10"
2726

@@ -60,7 +59,7 @@ jobs:
6059
6160
- name: Install test dependencies
6261
run: |
63-
pip install pyfixest pandas
62+
pip install pyfixest pandas scikit-learn
6463
6564
- name: Verify installation
6665
run: |
@@ -91,6 +90,7 @@ jobs:
9190
test-performance:
9291
name: Performance Tests
9392
runs-on: ubuntu-latest
93+
timeout-minutes: 20
9494
steps:
9595
- name: Checkout code
9696
uses: actions/checkout@v4
@@ -105,7 +105,7 @@ jobs:
105105
python -m pip install --upgrade pip
106106
pip install pytest pytest-benchmark
107107
pip install -e .
108-
pip install pyfixest pandas
108+
pip install pyfixest pandas scikit-learn
109109
110110
- name: Run performance benchmarks
111111
run: |
@@ -136,6 +136,7 @@ jobs:
136136
test-examples:
137137
name: Test Examples and Documentation
138138
runs-on: ubuntu-latest
139+
timeout-minutes: 25
139140
steps:
140141
- name: Checkout code
141142
uses: actions/checkout@v4
@@ -150,7 +151,7 @@ jobs:
150151
python -m pip install --upgrade pip
151152
pip install jupyter nbconvert
152153
pip install -e .
153-
pip install pyfixest pandas matplotlib seaborn
154+
pip install pyfixest pandas scikit-learn matplotlib seaborn
154155
155156
- name: Test example notebooks (if any)
156157
run: |

.github/workflows/fixed-effects-tests.yml

Lines changed: 0 additions & 267 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 30
1213
strategy:
1314
matrix:
14-
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12"]
1516

1617
steps:
1718
- uses: actions/checkout@v4
@@ -29,7 +30,7 @@ jobs:
2930
3031
- name: Install test dependencies
3132
run: |
32-
pip install pyfixest pandas
33+
pip install pyfixest pandas scikit-learn
3334
3435
- name: Run tests
3536
run: |
@@ -42,6 +43,7 @@ jobs:
4243
test-fast:
4344
# Quick test job for faster feedback
4445
runs-on: ubuntu-latest
46+
timeout-minutes: 15
4547
steps:
4648
- uses: actions/checkout@v4
4749

@@ -55,38 +57,8 @@ jobs:
5557
python -m pip install --upgrade pip
5658
pip install pytest
5759
pip install -e .
58-
pip install pyfixest pandas
60+
pip install pyfixest pandas scikit-learn
5961
6062
- name: Run minimal test suite
6163
run: |
6264
python -m pytest tests/test_linear.py tests/test_fe.py::test_minimal_example -v
63-
64-
lint:
65-
runs-on: ubuntu-latest
66-
steps:
67-
- uses: actions/checkout@v4
68-
69-
- name: Set up Python
70-
uses: actions/setup-python@v4
71-
with:
72-
python-version: "3.11"
73-
74-
- name: Install linting tools
75-
run: |
76-
python -m pip install --upgrade pip
77-
pip install black flake8 isort
78-
79-
- name: Check code formatting with black
80-
run: |
81-
black --check --diff .
82-
83-
- name: Check import sorting with isort
84-
run: |
85-
isort --check-only --diff .
86-
87-
- name: Lint with flake8
88-
run: |
89-
# Stop the build if there are Python syntax errors or undefined names
90-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
91-
# Exit-zero treats all errors as warnings. Line length set to 88 (black default)
92-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics

0 commit comments

Comments
 (0)