Skip to content

Commit 5007c26

Browse files
committed
chore(ci): add GitHub actions
1 parent c817dcc commit 5007c26

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Run commitlint
11+
run: |
12+
npm install -g @commitlint/cli @commitlint/config-conventional
13+
'echo "module.exports = {extends: [\"@commitlint/config-conventional\"]}" > commitlint.config.js'
14+
npx commitlint --from=origin/master
15+
- name: Run black
16+
run: |
17+
pip3 install --pre black==19.10b0
18+
black --check .

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
strategy:
9+
matrix:
10+
environment: ["py36", "py37", "docs", "py_func_v4", "cli_func_v4"]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Test CLI func
18+
run: |
19+
pip3 install tox
20+
tox -e ${ENVIRONMENT}
21+
with:
22+
environment: ${{ matrix.environment }}

0 commit comments

Comments
 (0)