diff --git a/.github/workflows/auto-semver.yml b/.github/workflows/auto-semver.yml new file mode 100644 index 0000000..963de8f --- /dev/null +++ b/.github/workflows/auto-semver.yml @@ -0,0 +1,25 @@ +name: Auto Semantic Version + +on: + push: + branches: [main] + +jobs: + tag: + name: Tag + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Increment version and create tag + id: create-tag + uses: corvexai/gha-auto-semver@fe3a7f81000b897d3f7bfdedd6edc7334765ce16 # v0.1.2 + with: + create_tag: true + initial_version: 0.1.0 diff --git a/.github/workflows/commit-message-check.yml b/.github/workflows/commit-message-check.yml new file mode 100644 index 0000000..1735709 --- /dev/null +++ b/.github/workflows/commit-message-check.yml @@ -0,0 +1,22 @@ +name: Commit Message Check + +on: + pull_request: + types: + - edited + - opened + - reopened + - synchronize + +jobs: + commit-message-check: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Check commit message + uses: corvexai/gha-commit-message-check@9af3a50e9d082f3c865b5563d543c928504d26e2 # v0.1.0 + with: + mode: strict + check_title: true + check_commits: false diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml new file mode 100644 index 0000000..09dbfd8 --- /dev/null +++ b/.github/workflows/python-ci.yml @@ -0,0 +1,19 @@ +name: Python CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + ci: + name: Python CI + uses: corvexai/gha-python-ci/.github/workflows/ci.yml@cb035fd6749c198adb47fc22a50c03839f4f5319 # v0.1.0 + with: + workflow_ref: cb035fd6749c198adb47fc22a50c03839f4f5319 + python_version: '3.12' + secrets: inherit + permissions: + contents: read + pull-requests: write