Refactor: repo hygiene, shared utils, focused tests, and CI improvements

- Remove dead imports/duplication from Google2xls.py and social.py
- Centralize shared logic in review_workflow_utils.py
- Add focused posting-flow tests in tests/test_social.py (all pass)
- Update .gitignore for secrets and local artifacts
- Trim requirements.txt to direct deps
- Improve CI: compile all scripts, run focused tests
- Prep repo for clean commit (no secrets, no local artifacts)
This commit is contained in:
timberjoegithub
2026-05-27 13:17:56 +00:00
parent eae7276147
commit 13ae301667
10 changed files with 3197 additions and 2545 deletions
+26 -23
View File
@@ -1,23 +1,26 @@
name: Pylint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py') --output=lint.txt || true
name: Validate
on: [push]
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install validation dependencies
run: |
python -m pip install --upgrade pip
pip install python-dateutil selenium
- name: Compile core scripts
run: |
python -m py_compile Google2xls.py WP2xls.py social.py text.py review_workflow_utils.py
- name: Run focused unit tests
run: |
python -m unittest discover -s tests