mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
39 lines
874 B
YAML
39 lines
874 B
YAML
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
python-django:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
max-parallel: 5
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip' # caching pip dependencies
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install --upgrade tox tox-gh-actions
|
|
|
|
- name: Tox tests (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
|
|
run: tox
|
|
env:
|
|
DJANGO: ${{ matrix.django-version }}
|
|
|
|
- name: Upload coverage
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
name: Python ${{ matrix.python-version }}
|