Skip to content

Commit 8bae34f

Browse files
committed
Cleanup
1 parent 1ac1615 commit 8bae34f

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,16 @@ jobs:
8484
- name: Install dependencies
8585
run: uv sync --all-extras
8686

87+
- name: Run unit tests
88+
if: matrix.python-version != '3.9'
89+
run: uv run pytest tests/unit/ -q
90+
8791
- name: Run unit tests with coverage
88-
env:
89-
PYTHONFAULTHANDLER: "1"
90-
run: |
91-
if [ "${{ matrix.python-version }}" = "3.9" ]; then
92-
uv run python -X faulthandler -c "import faulthandler, sys, pytest; faulthandler.dump_traceback_later(60, repeat=True); sys.exit(pytest.main(['tests/unit/', '--durations=25', '--cov=drift/core', '--cov-report=xml']))"
93-
else
94-
uv run python -X faulthandler -c "import faulthandler, sys, pytest; faulthandler.dump_traceback_later(60, repeat=True); sys.exit(pytest.main(['tests/unit/', '--durations=25']))"
95-
fi
92+
if: matrix.python-version == '3.9'
93+
run: uv run pytest tests/unit/ -q --cov=drift/core --cov-report=xml
9694

9795
- name: Upload coverage to Coveralls
98-
if: matrix.python-version == '3.9'
99-
# if: matrix.python-version == '3.9' && github.event_name == 'push' && github.ref == 'refs/heads/main'
96+
if: matrix.python-version == '3.9' && github.event_name == 'push' && github.ref == 'refs/heads/main'
10097
uses: coverallsapp/github-action@v2
10198
with:
10299
file: coverage.xml

0 commit comments

Comments
 (0)