diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5f93000..dddfe6d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: [main, 'release-please--**'] pull_request: workflow_call: diff --git a/.github/workflows/pr-title.yaml b/.github/workflows/pr-title.yaml index 3ca5139..8537600 100644 --- a/.github/workflows/pr-title.yaml +++ b/.github/workflows/pr-title.yaml @@ -1,6 +1,8 @@ name: PR Title on: + push: + branches: ['release-please--**'] pull_request: types: [opened, edited, synchronize, reopened] @@ -9,7 +11,8 @@ jobs: name: Validate conventional commit format runs-on: ubuntu-24.04 steps: - - uses: amannn/action-semantic-pull-request@v6 + - if: ${{ github.event_name != 'push' }} + uses: amannn/action-semantic-pull-request@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -25,3 +28,6 @@ jobs: requireScope: false subjectPattern: ^.+$ subjectPatternError: "PR title must have a description after the type" + + - if: ${{ github.event_name == 'push' }} + run: echo "Release Please PRs always use valid conventional commit format" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 35d5352..00311f5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,11 +16,18 @@ jobs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} steps: + - uses: actions/create-github-app-token@v2 + id: app-token + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - uses: googleapis/release-please-action@v4 id: release with: config-file: .release-please-config.json manifest-file: .release-please-manifest.json + token: ${{ steps.app-token.outputs.token }} publish: name: Build & publish to PyPI diff --git a/pyproject.toml b/pyproject.toml index 5f5c1f2..2dbf4d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ include = ["src/fluxopt_plot/", "LICENSE", "README.md"] [dependency-groups] dev = [ + "fluxopt @ git+https://github.com/FBumann/fluxopt.git", "mypy==1.19.1", "pre-commit==4.5.1", "pytest==9.0.2",