From 243ae0e6bfd8e6f8618b75a2ebdc9c74c6b12f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Mon, 1 Feb 2021 15:43:46 +0100 Subject: [PATCH] ci: fix various issues with the PRs checks --- .github/workflows/commitlint.yml | 17 +++++------------ .github/workflows/unit-tests.yml | 5 +++-- config-comlipy.yml | 18 ------------------ 3 files changed, 8 insertions(+), 32 deletions(-) delete mode 100644 config-comlipy.yml diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index efd9b87..aa7a46e 100644 --- a/.github/workflows/commitlint.yml +++ b/.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' diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index e57034b..a9411f0 100644 --- a/.github/workflows/unit-tests.yml +++ b/.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 diff --git a/config-comlipy.yml b/config-comlipy.yml deleted file mode 100644 index f58b18c..0000000 --- a/config-comlipy.yml +++ /dev/null @@ -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