From 1924483aa1753bb0d9c36c5161f03c4092a5274a Mon Sep 17 00:00:00 2001 From: Deuchnord Date: Tue, 25 Apr 2023 09:24:44 +0200 Subject: [PATCH] ci: reorganize the workflows (#63) --- .github/workflows/black.yml | 19 ++++++++++++++++--- .github/workflows/semantic-pr.yml | 17 ----------------- .github/workflows/tests.yml | 4 ++-- 3 files changed, 18 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/semantic-pr.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index b6f5bda..4c4b714 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,4 +1,4 @@ -name: Code style +name: Pull Request Checks on: push: @@ -7,13 +7,26 @@ on: branches: [main, features] jobs: - lint: + semantic-pr: + name: Semantic Pull Request 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 + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.x - uses: psf/black@20.8b1 diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml deleted file mode 100644 index 06fecc4..0000000 --- a/.github/workflows/semantic-pr.yml +++ /dev/null @@ -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 }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5c518ef..04c4966 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: Unit Tests on: push: @@ -23,7 +23,7 @@ jobs: - '3.10' - '3.11' - name: Doc tests (Python ${{ matrix.python_version }} on ${{ matrix.os }}) + name: Python ${{ matrix.python_version }} (${{ matrix.os }}) steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python_version }}