Skip to content

Commit

Permalink
Merge pull request #55 from open-dynaMIX/add_gitlint_to_workflow
Browse files Browse the repository at this point in the history
chore: add gitlint to test workflow
  • Loading branch information
open-dynaMIX authored Dec 16, 2021
2 parents 5fc51be + c025792 commit b516ea9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ on:

jobs:
tests:

runs-on: ubuntu-latest
strategy:
matrix:
python: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10", pypy3]

python: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
steps:
- uses: actions/checkout@v2
- name: Setup Python
Expand All @@ -26,37 +24,43 @@ jobs:
run: tox -e py # Run tox using the version of Python in `PATH`

flake8:

runs-on: ubuntu-latest
strategy:
matrix:
python: [3.9]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
python-version: "3.9"
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
run: tox -e flake8

black:

runs-on: ubuntu-latest
strategy:
matrix:
python: [3.9]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
python-version: "3.9"
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
run: tox -e black

gitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install gitlint
run: pip install gitlint
- name: Run gitlint
run: gitlint --contrib contrib-title-conventional-commits
2 changes: 2 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[general]
ignore=body-is-missing, body-max-line-length, body-min-length, title-max-length

0 comments on commit b516ea9

Please sign in to comment.