| @@ -0,0 +1,32 @@ | |||||
| name: Checks | |||||
| on: | |||||
| push: | |||||
| branches: [main, features] | |||||
| pull_request: | |||||
| branches: [main, features] | |||||
| jobs: | |||||
| lint: | |||||
| name: Code Style | |||||
| runs-on: ubuntu-latest | |||||
| steps: | |||||
| - uses: actions/checkout@v5 | |||||
| - uses: actions/setup-python@v6 | |||||
| with: | |||||
| python-version: 3.x | |||||
| - uses: psf/black@stable | |||||
| poetry-check: | |||||
| runs-on: ubuntu-latest | |||||
| name: Poetry | |||||
| steps: | |||||
| - uses: actions/checkout@v7 | |||||
| - uses: actions/setup-python@v6 | |||||
| with: | |||||
| python-version: '3.x' | |||||
| - run: | | |||||
| pip install -U pip poetry | |||||
| poetry install | |||||
| - run: poetry check --strict | |||||
| @@ -0,0 +1,18 @@ | |||||
| name: Pull Request | |||||
| on: | |||||
| pull_request: | |||||
| types: | |||||
| - opened | |||||
| - edited | |||||
| - synchronize | |||||
| jobs: | |||||
| semantic-pr: | |||||
| name: Validate PR title | |||||
| runs-on: ubuntu-latest | |||||
| steps: | |||||
| - uses: amannn/action-semantic-pull-request@v6 | |||||
| env: | |||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||||
| @@ -1,30 +0,0 @@ | |||||
| name: Pull Request Checks | |||||
| on: | |||||
| pull_request: | |||||
| branches: [main, features] | |||||
| jobs: | |||||
| semantic-pr: | |||||
| name: Semantic Pull Request | |||||
| runs-on: ubuntu-latest | |||||
| strategy: | |||||
| fail-fast: false | |||||
| steps: | |||||
| - uses: amannn/action-semantic-pull-request@v6 | |||||
| env: | |||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||||
| lint: | |||||
| name: Code Style | |||||
| runs-on: ubuntu-latest | |||||
| strategy: | |||||
| fail-fast: false | |||||
| steps: | |||||
| - uses: actions/checkout@v5 | |||||
| - uses: actions/setup-python@v6 | |||||
| with: | |||||
| python-version: 3.x | |||||
| - uses: psf/black@stable | |||||