diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-12-18 14:46:03 +0100 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2019-12-18 14:46:03 +0100 |
commit | 5007c262d949561963ccbc79a150008bc6ddd3e1 (patch) | |
tree | 37a1ac5f57e43648becf62139e1f7fc09c9d67e4 | |
parent | c817dccde8c104dcb294bbf1590c7e3ae9539466 (diff) | |
download | gitlab-5007c262d949561963ccbc79a150008bc6ddd3e1.tar.gz |
chore(ci): add GitHub actions
-rw-r--r-- | .github/workflows/lint.yml | 18 | ||||
-rw-r--r-- | .github/workflows/main.yml | 22 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..61bd299 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Lint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Run commitlint + run: | + 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 + black --check . diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..83dbb28 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: + - master + +strategy: + matrix: + environment: ["py36", "py37", "docs", "py_func_v4", "cli_func_v4"] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Test CLI func + run: | + pip3 install tox + tox -e ${ENVIRONMENT} + with: + environment: ${{ matrix.environment }} |