diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-10-21 08:55:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 08:55:32 +0300 |
commit | 63ebe693174a4e6ec314e48d12fcdf3f8401eec6 (patch) | |
tree | e1cc497709a49bf6b448cfe8d9fed971f2036f80 /.github/workflows/integration.yaml | |
parent | e60d97e6f428f4c536324922ebbe7efcd2440b83 (diff) | |
download | redis-py-63ebe693174a4e6ec314e48d12fcdf3f8401eec6.tar.gz |
tox integrations with invoke and docker (#1632)
Diffstat (limited to '.github/workflows/integration.yaml')
-rw-r--r-- | .github/workflows/integration.yaml | 56 |
1 files changed, 53 insertions, 3 deletions
diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index f08a2c2..2618c33 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -2,12 +2,62 @@ name: CI on: push: + paths-ignore: + - 'docs/**' + - '**/*.rst' + - '**/*.md' pull_request: + paths-ignore: + - 'docs/**' + - '**/*.rst' + - '**/*.md' jobs: - integration: + + lint: + name: Code linters + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: install python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: run code linters + run: | + pip install -r dev_requirements.txt + invoke linters + + run-tests: + runs-on: ubuntu-latest + strategy: + max-parallel: 6 + matrix: + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.7'] + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + name: Python ${{ matrix.python-version }} tests + steps: + - uses: actions/checkout@v2 + - name: install python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: run tests + run: | + pip install -r dev_requirements.txt + invoke tests + + build_package: + name: Validate building and installing the package runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: test - run: make test + - name: install python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: build and install + run: | + pip install invoke + invoke package |