Skip to content

Commit 555b7ed

Browse files
Aadi JainAadi Jain
authored andcommitted
ci: temporarily push CI test logs to main to inspect failure
1 parent 3b3ebc6 commit 555b7ed

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ "main" ]
88

99
permissions:
10-
contents: read
10+
contents: write
1111

1212
jobs:
1313
lint:
@@ -37,10 +37,23 @@ jobs:
3737
enable-cache: true
3838
- name: Run Tests
3939
run: |
40-
uv venv
41-
source .venv/bin/activate
42-
uv pip install pytest polars numpy scipy scikit-learn pyyaml duckdb spacy
43-
uv pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
44-
python -m pytest tests/ -v --ignore=tests/test_audio_utils.py
40+
echo "=== STARTING CI TESTS ===" > ci_log.txt
41+
uv venv >> ci_log.txt 2>&1 || true
42+
source .venv/bin/activate >> ci_log.txt 2>&1 || true
43+
echo "--- Installing dependencies ---" >> ci_log.txt
44+
uv pip install pytest polars numpy scipy scikit-learn pyyaml duckdb spacy >> ci_log.txt 2>&1 || true
45+
echo "--- Installing spaCy model wheel ---" >> ci_log.txt
46+
uv pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl >> ci_log.txt 2>&1 || true
47+
echo "--- Running pytest ---" >> ci_log.txt
48+
python -m pytest tests/ -v --ignore=tests/test_audio_utils.py >> ci_log.txt 2>&1 || true
49+
echo "=== CI TESTS FINISHED ===" >> ci_log.txt
50+
- name: Upload logs to repo
51+
run: |
52+
git config --global user.name "CI Log Uploader"
53+
git config --global user.email "ci-uploader@example.com"
54+
git add ci_log.txt
55+
git commit -m "chore: upload CI logs for inspection [skip ci]"
56+
git push origin main
57+
4558
4659

0 commit comments

Comments
 (0)