@@ -1,4 +1,4 @@ | |||||
name: Code style | |||||
name: Pull Request Checks | |||||
on: | on: | ||||
push: | push: | ||||
@@ -7,13 +7,26 @@ on: | |||||
branches: [main, features] | branches: [main, features] | ||||
jobs: | jobs: | ||||
lint: | |||||
semantic-pr: | |||||
name: Semantic Pull Request | |||||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||||
strategy: | |||||
fail-fast: false | |||||
steps: | |||||
- uses: amannn/action-semantic-pull-request@v5 | |||||
env: | |||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||||
lint: | |||||
name: Code Style | name: Code Style | ||||
runs-on: ubuntu-latest | |||||
strategy: | |||||
fail-fast: false | |||||
steps: | steps: | ||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
- uses: actions/setup-python@v4 | - uses: actions/setup-python@v4 | ||||
with: | with: | ||||
python-version: 3.9 | |||||
python-version: 3.x | |||||
- uses: psf/black@20.8b1 | - uses: psf/black@20.8b1 |
@@ -1,17 +0,0 @@ | |||||
name: "Semantic Pull Request" | |||||
on: | |||||
pull_request: | |||||
types: | |||||
- opened | |||||
- edited | |||||
- synchronize | |||||
jobs: | |||||
main: | |||||
name: Validate PR title | |||||
runs-on: ubuntu-latest | |||||
steps: | |||||
- uses: amannn/action-semantic-pull-request@v5 | |||||
env: | |||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@@ -1,4 +1,4 @@ | |||||
name: Tests | |||||
name: Unit Tests | |||||
on: | on: | ||||
push: | push: | ||||
@@ -23,7 +23,7 @@ jobs: | |||||
- '3.10' | - '3.10' | ||||
- '3.11' | - '3.11' | ||||
name: Doc tests (Python ${{ matrix.python_version }} on ${{ matrix.os }}) | |||||
name: Python ${{ matrix.python_version }} (${{ matrix.os }}) | |||||
steps: | steps: | ||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
- name: Set up Python ${{ matrix.python_version }} | - name: Set up Python ${{ matrix.python_version }} | ||||