瀏覽代碼

ci: fix various issues with the PRs checks (#139)

tags/v0.10.0
Jérôme Deuchnord 3 年之前
committed by GitHub
父節點
當前提交
86983c957c
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 3 個文件被更改,包括 8 次插入32 次删除
  1. +5
    -12
      .github/workflows/commitlint.yml
  2. +3
    -2
      .github/workflows/unit-tests.yml
  3. +0
    -18
      config-comlipy.yml

+ 5
- 12
.github/workflows/commitlint.yml 查看文件

@@ -11,17 +11,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
- uses: actions/checkout@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade pip comlipy
- name: Lint
run: |
message="$(git log --format=%B -n 1 HEAD)"
echo $message
comlipy -c config-comlipy.yml "$message"
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v2
with:
helpURL: 'https://github.com/Kosmorro/kosmorro/blob/master/CONTRIBUTING.md#commiting'


+ 3
- 2
.github/workflows/unit-tests.yml 查看文件

@@ -35,7 +35,8 @@ jobs:
pipenv sync -d
- name: Unit tests
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make test
COVERALLS_REPO_TOKEN=$COVERALLS_TOKEN pipenv run coveralls
pipenv run coveralls --service=github

+ 0
- 18
config-comlipy.yml 查看文件

@@ -1,18 +0,0 @@
global:
help: 'get help here: https://github.com/Deuchnord/kosmorro/blob/master/CONTRIBUTING.md#commiting'

rules:
header-min-length:
applicable: always
value: 0
level: 1
header-max-length:
applicable: always
value: 120
level: 2
scope-case:
value: lower-case
scope-empty:
level: 0
subject-case:
level: 0

Loading…
取消
儲存