chore: bump version to 0.8.1 to fix version mismatch in 0.8.0 #75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Test on Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13'] | |
| 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 uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Clean cache before install | |
| run: | | |
| find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true | |
| find . -type f -name "*.pyc" -delete 2>/dev/null || true | |
| find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true | |
| - name: Install dependencies | |
| run: | | |
| uv pip install --system --no-cache -e ".[dev]" | |
| - name: Verify CLI options are visible | |
| run: | | |
| echo "=== Testing metaspec contribute --help ===" | |
| metaspec contribute --help | |
| echo "" | |
| echo "=== Testing metaspec init --help ===" | |
| metaspec init --help | |
| - name: Debug test environment | |
| run: | | |
| python -c "import metaspec; print('metaspec.__file__:', metaspec.__file__)" | |
| python -c "from metaspec.cli.main import app; from typer.testing import CliRunner; runner = CliRunner(); result = runner.invoke(app, ['contribute', '--help']); print('Test --command present:', '--command' in result.stdout); import sys; sys.stdout.write(result.stdout[:800])" | |
| - name: Run tests | |
| run: | | |
| python -m pytest --cov=metaspec --cov-report=xml --cov-report=term | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |
| if: matrix.python-version == '3.11' | |
| with: | |
| file: ./coverage.xml | |
| fail_ci_if_error: false | |
| lint: | |
| name: Lint and Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install dependencies | |
| run: | | |
| uv pip install --system -e ".[dev]" | |
| - name: Run ruff | |
| run: | | |
| python -m ruff check . | |
| - name: Run mypy | |
| run: | | |
| python -m mypy src/metaspec | |
| build: | |
| name: Build Package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install build tools | |
| run: | | |
| uv pip install --system build twine | |
| - name: Build package | |
| run: | | |
| python -m build | |
| - name: Check package | |
| run: | | |
| python -m twine check dist/* | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |