summaryrefslogtreecommitdiff
path: root/.github/workflows/integration.yaml
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-10-21 08:55:32 +0300
committerGitHub <noreply@github.com>2021-10-21 08:55:32 +0300
commit63ebe693174a4e6ec314e48d12fcdf3f8401eec6 (patch)
treee1cc497709a49bf6b448cfe8d9fed971f2036f80 /.github/workflows/integration.yaml
parente60d97e6f428f4c536324922ebbe7efcd2440b83 (diff)
downloadredis-py-63ebe693174a4e6ec314e48d12fcdf3f8401eec6.tar.gz
tox integrations with invoke and docker (#1632)
Diffstat (limited to '.github/workflows/integration.yaml')
-rw-r--r--.github/workflows/integration.yaml56
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