Skip to content

Commit a30dd74

Browse files
sidmohan0claude
andcommitted
fix(ci): restore expected job names and consolidate workflows
- Rename test-full back to 'build' job to match branch protection rules - Remove duplicate wheel_size.yml workflow - Consolidate wheel size checking into main ci.yml - Maintain test-core job for lightweight testing - This should resolve GitHub status check reporting issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0dbf21d commit a30dd74

File tree

2 files changed

+25
-63
lines changed

2 files changed

+25
-63
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Run pre-commit
2121
run: pre-commit run --all-files --show-diff-on-failure
2222

23-
test-core:
23+
build:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
@@ -33,19 +33,28 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
cache: "pip"
3535

36-
- name: Install core dependencies only
36+
- name: Install Tesseract OCR
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y tesseract-ocr libtesseract-dev
40+
41+
- name: Install all dependencies
3742
run: |
3843
python -m pip install --upgrade pip
39-
pip install -e .
40-
pip install pytest pytest-cov
44+
pip install -e ".[all]"
45+
pip install -r requirements-dev.txt
4146
42-
- name: Test core functionality
47+
- name: Run full test suite
4348
run: |
44-
python -c "from datafog import detect_pii, anonymize_text; print('Core API works')"
45-
python -c "from datafog import detect, process; print('Legacy API works')"
46-
python -m pytest tests/test_regex_annotator.py -v
49+
python -m pytest tests/ --cov=datafog --cov-report=xml --cov-report=term
50+
51+
- name: Upload coverage
52+
uses: codecov/codecov-action@v4
53+
with:
54+
file: ./coverage.xml
55+
token: ${{ secrets.CODECOV_TOKEN }}
4756

48-
test-full:
57+
test-core:
4958
runs-on: ubuntu-latest
5059
strategy:
5160
matrix:
@@ -58,26 +67,17 @@ jobs:
5867
python-version: ${{ matrix.python-version }}
5968
cache: "pip"
6069

61-
- name: Install Tesseract OCR
62-
run: |
63-
sudo apt-get update
64-
sudo apt-get install -y tesseract-ocr libtesseract-dev
65-
66-
- name: Install all dependencies
70+
- name: Install core dependencies only
6771
run: |
6872
python -m pip install --upgrade pip
69-
pip install -e ".[all]"
70-
pip install -r requirements-dev.txt
73+
pip install -e .
74+
pip install pytest pytest-cov
7175
72-
- name: Run full test suite
76+
- name: Test core functionality
7377
run: |
74-
python -m pytest tests/ --cov=datafog --cov-report=xml --cov-report=term
75-
76-
- name: Upload coverage
77-
uses: codecov/codecov-action@v4
78-
with:
79-
file: ./coverage.xml
80-
token: ${{ secrets.CODECOV_TOKEN }}
78+
python -c "from datafog import detect_pii, anonymize_text; print('Core API works')"
79+
python -c "from datafog import detect, process; print('Legacy API works')"
80+
python -m pytest tests/test_regex_annotator.py -v
8181
8282
wheel-size:
8383
runs-on: ubuntu-latest

.github/workflows/wheel_size.yml

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

0 commit comments

Comments
 (0)