Browse Source

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

tags/v0.10.0
Jérôme Deuchnord 4 years ago
committed by GitHub
parent
commit
86983c957c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 32 deletions
  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 View File

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


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



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

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

+ 0
- 18
config-comlipy.yml View File

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

||||||
x
 
000:0
Loading…
Cancel
Save