Skip to content

Chore/ci GitHub actions #981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run commitlint
run: |
mkdir "${HOME}/.npm-packages"
npm config set prefix "${HOME}/.npm-packages"
export PATH="$PATH:$NPM_PACKAGES/bin"
npm install -g @commitlint/cli @commitlint/config-conventional
echo "module.exports = {extends: [\"@commitlint/config-conventional\"]}" > commitlint.config.js
npx commitlint --from=origin/master
- name: Run black
run: |
pip3 install --pre black==19.10b0
python3 -m black --check .
71 changes: 71 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: CI

on: [push]

jobs:
test-3-6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: "3.6"
- name: Test py36
run: |
pip3 install tox
python3 -m tox -e py36
test-3-7:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Test py37
run: |
pip3 install tox
python3 -m tox -e py37
test-3-8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Test py38
run: |
pip3 install tox
python3 -m tox -e py38
test-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Test py38
run: |
pip3 install tox
python3 -m tox -e docs
test-py_func_v4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Test py38
run: |
pip3 install tox
python3 -m tox -e py_func_v4
test-cli_func_v4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Test py38
run: |
pip3 install tox
python3 -m tox -e cli_func_v4
69 changes: 0 additions & 69 deletions .travis.yml

This file was deleted.