django-analytical/.github/workflows/test.yml
2023-05-02 10:44:32 +02:00

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 }}