diff options
| author | Max Wittig <max.wittig95@gmail.com> | 2019-12-19 19:04:41 +0100 |
|---|---|---|
| committer | Max Wittig <max.wittig95@gmail.com> | 2020-01-02 12:03:12 +0100 |
| commit | f5b43a01478bb06c80baf44363de1cdca64109f6 (patch) | |
| tree | cbe451d47192b5d7e5d8b1f84885b744c46da336 /.github | |
| parent | bb657377ef39ed4ee924a20672b34e36016d51b2 (diff) | |
| download | gitlab-chore/ci-github-actions.tar.gz | |
test: update lint.ymlchore/ci-github-actions
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/lint.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/main.yml | 73 |
2 files changed, 63 insertions, 14 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 01da774..c2d2dd2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,9 +13,9 @@ jobs: 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' + 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 . + python3 -m black --check . diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83dbb28..f9dea53 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,22 +1,71 @@ name: CI -on: - push: - branches: - - master - -strategy: - matrix: - environment: ["py36", "py37", "docs", "py_func_v4", "cli_func_v4"] +on: [push] jobs: - build: + 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 - - name: Test CLI func + - uses: actions/setup-python@v1 + with: + python-version: "3.7" + - name: Test py37 run: | pip3 install tox - tox -e ${ENVIRONMENT} + python3 -m tox -e py37 + test-3-8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 with: - environment: ${{ matrix.environment }} + 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 |
