feat: custom package #1
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: tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
pep8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Python setup | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install tox and flake8 | |
run: pip install tox flake8 | |
- name: Check syntax compliance | |
run: tox -e pep8 | |
django: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
django: ["3.2", "4.0", "4.1"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Python setup | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install tox and django | |
run: pip install tox "django==${{ matrix.django }}" | |
- name: Run unit tests | |
run: tox -e py3.10-django${{ matrix.django }} |