浏览代码

ci: reorganize the workflows (#63)

poetry/7611
Deuchnord 1年前
committed by GitHub
父节点
当前提交
7d3bbe7160
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 3 个文件被更改,包括 18 次插入22 次删除
  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 查看文件

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

+ 0
- 17
.github/workflows/semantic-pr.yml 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存