Update README #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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.6", "3.7", "3.8", "3.9"] | |
django-version: ["1.11.29", "2.2.13", "3.0.7", "3.1.2", "3.2.4"] | |
include: | |
- python-version: "3.10" | |
django-version: "4.0.4" | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tooling | |
run: | | |
python -mpip install poetry; python -mpip install six | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Setup Django ${{ matrix.django-version }} | |
run: | | |
poetry run pip install django==${{ matrix.django-version }} | |
- name: Lint with flake | |
run: | | |
poetry run flake8 django_sqids | |
- name: Test with pytest | |
run: | | |
poetry run pytest --cov=./django_sqids/ |