Browse Source

ci: reorganize the workflows (#63)

tags/v1.0.8
Deuchnord 1 year ago
committed by Deuchnord
parent
commit
1924483aa1
3 changed files with 18 additions and 22 deletions
  1. +16
    -3
      .github/workflows/black.yml
  2. +0
    -17
      .github/workflows/semantic-pr.yml
  3. +2
    -2
      .github/workflows/tests.yml

+ 16
- 3
.github/workflows/black.yml View File

@@ -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

+ 0
- 17
.github/workflows/semantic-pr.yml View File

@@ -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 }}

+ 2
- 2
.github/workflows/tests.yml View File

@@ -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 }}


Loading…
Cancel
Save