Skip to content

chore: Add stand with Ukraine banner #135

chore: Add stand with Ukraine banner

chore: Add stand with Ukraine banner #135

Workflow file for this run

# 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: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'poetry'
- name: Cache virtualenv
uses: actions/cache@v3
with:
key: venv-${{ runner.os }}-${{ steps.setup_python.outputs.python-version}}-${{ hashFiles('poetry.lock') }}
path: .venv
- name: Set up env
run: |
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