Merge branch 'feature/mass_update_enh' into develop #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip tox | |
- name: Lint with flake8 | |
run: | | |
tox -e lint | |
test: | |
services: | |
redis: | |
image: redis | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.9", "3.10", "3.11" ] | |
django-version: [ "3.2", "4.0", "4.1" ] | |
env: | |
PY_VER: ${{ matrix.python-version}} | |
DJ_VER: ${{ matrix.django-version}} | |
CELERY_BROKER_URL: redis://redis:6379/0 | |
CELERY_ALWAYS_EAGER: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: python -m pip install --upgrade pip .[test] "django==${DJ_VER}.*" | |
- name: Test with | |
run: py.test tests/ -v | |
- uses: codecov/codecov-action@v1 | |
with: | |
# files: ./coverage1.xml,./coverage2.xml # optional | |
# flags: unittests # optional | |
# name: codecov-umbrella # optional | |
# fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) |