chore: link to github doc page in README #19
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: Test-and-release-kratix-sdk | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches-ignore: [ "release-please--**" ] | |
| jobs: | |
| test: | |
| name: Lint and test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["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: Display Python version | |
| run: python -c "import sys; print(sys.version)" | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade pip setuptools wheel | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| - name: lint | |
| run: make install lint | |
| - name: Tests | |
| run: make test | |
| release-please: | |
| name: Create Release PR | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install Release Please | |
| run: npm install -g release-please | |
| - name: Create pending releases | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| release-please \ | |
| --token="${{ secrets.GITHUB_TOKEN }}" \ | |
| --repo-url="${{ github.repository }}" \ | |
| github-release | |
| - name: Create Release PR | |
| run: | | |
| release-please release-pr \ | |
| --repo-url="${{ github.repository }}" \ | |
| --token="${{ secrets.GITHUB_TOKEN }}" \ | |
| --release-type="python" |