Skip to content

chore: bump version to 1.3.1 #40

chore: bump version to 1.3.1

chore: bump version to 1.3.1 #40

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest black flake8 mypy types-requests
- name: Lint with flake8
run: |
flake8 src/ --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Check formatting with black
run: black --check src/
- name: Type check with mypy
run: mypy src/
- name: Test CLI installation
run: |
article-cli --version
article-cli --help
- name: Generate test summary
if: always()
run: |
echo "## 🧪 Test Results for Python ${{ matrix.python-version }}" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Linting (flake8): Passed" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Formatting (black): Passed" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Type checking (mypy): Passed" >> $GITHUB_STEP_SUMMARY
echo "- ✅ CLI installation: Passed" >> $GITHUB_STEP_SUMMARY
build:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Check package
run: twine check dist/*
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
- name: Generate build summary
if: always()
run: |
echo "## 📦 Build Summary" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Package built successfully" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Package validation passed" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Artifacts uploaded" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### 📋 Package Details" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
ls -la dist/ >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY