feat: auto-move Unreleased content to version section on release #6
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: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install PDM | |
| uses: pdm-project/setup-pdm@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: pdm install --dev | |
| - name: Run tests | |
| run: pdm run python -m pytest --verbose | |
| - name: Run linting | |
| run: pdm run ruff check . | |
| - name: Run type checking | |
| run: pdm run pyright | |
| docker: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| run: docker build -t repomix:test . | |
| - name: Test Docker image | |
| run: | | |
| # Create test directory | |
| mkdir -p /tmp/test-repo | |
| echo "print('Hello, World!')" > /tmp/test-repo/test.py | |
| echo "# Test Project" > /tmp/test-repo/README.md | |
| # Test basic functionality | |
| docker run --rm -v /tmp/test-repo:/app repomix:test --version | |
| docker run --rm -v /tmp/test-repo:/app repomix:test --help | |
| docker run --rm -v /tmp/test-repo:/app repomix:test --output test-output.md | |
| # Verify output file was created | |
| ls -la /tmp/test-repo/test-output.md |