Typing upgrade #123
Workflow file for this run
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
# Docs: | |
# - https://docs.github.com/en/actions/guides/about-service-containers | |
# - https://github.com/actions/example-services/blob/main/.github/workflows/mongodb-service.yml | |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "pypy3.9" | |
- "pypy3.10" | |
django: | |
- "Django>=3.2,<3.3" | |
- "Django>=4.2,<4.3" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DJANGO: ${{ matrix.django }} | |
services: | |
mongodb: | |
image: mongo | |
ports: | |
- 27017:27017 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Set up env | |
run: | | |
python -m pip install -U -q poetry pip | |
poetry install -q | |
poetry run pip install -q "${{ matrix.django }}" | |
- name: Run tests | |
run: | | |
poetry run ruff . | |
poetry run black --check . | |
poetry run python -m pytest |