Browse Source

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

tags/v0.10.0
Jérôme Deuchnord 3 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

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 View File

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

Loading…
Cancel
Save