Skip to content

Commit

Permalink
Merge pull request #45 from devilbox/release-1.0.2
Browse files Browse the repository at this point in the history
Release 1.0.2
  • Loading branch information
cytopia authored Dec 6, 2020
2 parents c626aba + 01a9cce commit 783bf39
Show file tree
Hide file tree
Showing 15 changed files with 729 additions and 765 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/code-black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

###
### Code style
###

name: black
on:
pull_request:
push:
branches:
- master
tags:

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
target:
- black
name: "[ ${{ matrix.target }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@master

- name: "${{ matrix.target }}"
run: |
make _code-${{ matrix.target }}
30 changes: 30 additions & 0 deletions .github/workflows/code-mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

###
### Code style
###

name: mypy
on:
pull_request:
push:
branches:
- master
tags:

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
target:
- mypy
name: "[ ${{ matrix.target }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@master

- name: "${{ matrix.target }}"
run: |
make _code-${{ matrix.target }}
30 changes: 30 additions & 0 deletions .github/workflows/code-pycodestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

###
### Code style
###

name: pycode
on:
pull_request:
push:
branches:
- master
tags:

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
target:
- pycodestyle
name: "[ ${{ matrix.target }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@master

- name: "${{ matrix.target }}"
run: |
make _code-${{ matrix.target }}
30 changes: 30 additions & 0 deletions .github/workflows/code-pydocstyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

###
### Code style
###

name: pydoc
on:
pull_request:
push:
branches:
- master
tags:

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
target:
- pydocstyle
name: "[ ${{ matrix.target }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@master

- name: "${{ matrix.target }}"
run: |
make _code-${{ matrix.target }}
30 changes: 30 additions & 0 deletions .github/workflows/code-pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

###
### Code style
###

name: pylint
on:
pull_request:
push:
branches:
- master
tags:

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
target:
- pylint
name: "[ ${{ matrix.target }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@master

- name: "${{ matrix.target }}"
run: |
make _code-${{ matrix.target }}
49 changes: 49 additions & 0 deletions .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---

###
### Lints all generic and json files in the whole git repository
###

name: fuzzing
on:
pull_request:
push:
branches:
- master
tags:

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
version:
- '2.7'
- '3.6'
- '3.7'
- '3.8'

name: "[ ${{ matrix.target }} ${{ matrix.version}} ]"
steps:
- name: Checkout repository
uses: actions/checkout@master

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version }}
architecture: x64

- name: Install Python requirements
run: |
pip install -r requirements.txt
- name: Fuzzing - before install
run: |
.ci/fuzzy.sh
- name: Fuzzing - after install
run: |
sudo make install
.ci/fuzzy.sh
5 changes: 2 additions & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
fail-fast: False
matrix:
target:
- pycodestyle
- pydocstyle
- black
- _lint-files
- _lint-version

name: "[ ${{ matrix.target }} ]"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@master

- name: Lint
- name: Test
run: |
make ${target} VERSION=${version}
env:
Expand Down
Loading

0 comments on commit 783bf39

Please sign in to comment.