Skip to content

Commit 5f2dbab

Browse files
committed
test: update lint.yml
1 parent bb65737 commit 5f2dbab

File tree

3 files changed

+30
-83
lines changed

3 files changed

+30
-83
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
npm config set prefix "${HOME}/.npm-packages"
1414
export PATH="$PATH:$NPM_PACKAGES/bin"
1515
npm install -g @commitlint/cli @commitlint/config-conventional
16-
'echo "module.exports = {extends: [\"@commitlint/config-conventional\"]}" > commitlint.config.js'
16+
echo "module.exports = {extends: [\"@commitlint/config-conventional\"]}" > commitlint.config.js
1717
npx commitlint --from=origin/master
1818
- name: Run black
1919
run: |
2020
pip3 install --pre black==19.10b0
21-
black --check .
21+
python3 -m black --check .

.github/workflows/main.yml

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,38 @@
11
name: CI
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
8-
strategy:
9-
matrix:
10-
environment: ["py36", "py37", "docs", "py_func_v4", "cli_func_v4"]
3+
on: [push]
114

125
jobs:
13-
build:
6+
test-3.6:
147
runs-on: ubuntu-latest
158
steps:
169
- uses: actions/checkout@v1
17-
- name: Test CLI func
10+
- uses: actions/setup-python@v1
11+
with:
12+
python-version: "3.6"
13+
- name: Test py36
1814
run: |
1915
pip3 install tox
20-
tox -e ${ENVIRONMENT}
16+
python3 -m tox -e py36
17+
test-3.7:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v1
21+
- uses: actions/setup-python@v1
2122
with:
22-
environment: ${{ matrix.environment }}
23+
python-version: "3.7"
24+
- name: Test py37
25+
run: |
26+
pip3 install tox
27+
python3 -m tox -e py37
28+
test-3.8:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v1
32+
- uses: actions/setup-python@v1
33+
with:
34+
python-version: "3.8"
35+
- name: Test py38
36+
run: |
37+
pip3 install tox
38+
python3 -m tox -e py38

.travis.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)