File: test.yml

package info (click to toggle)
python-django-modelcluster 6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 508 kB
  • sloc: python: 5,026; sh: 6; makefile: 5
file content (75 lines) | stat: -rw-r--r-- 2,382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI

on:
  push:
  pull_request:

jobs:
  test:
    name: Python ${{ matrix.python }} - ${{ matrix.django }} - ${{ matrix.database }}
    runs-on: ubuntu-latest
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      matrix:
        include:
          - python: "3.9"
            django: "Django>=4.2,<4.3"
            taggit: "django-taggit>=2.1.0"
            database: "postgresql"
            psycopg: "psycopg2>=2.9.2"
            experimental: false
          - python: "3.12"
            django: "Django>=5.0,<5.1"
            taggit: "django-taggit>=2.1.0"
            database: "sqlite3"
            psycopg: "psycopg2>=2.9.2"
            experimental: false
          - python: "3.13"
            django: "Django>=5.1,<5.2"
            taggit: "django-taggit>=2.1.0"
            database: "sqlite3"
            psycopg: "psycopg2>=2.9.2"
            experimental: false
          - python: "3.10"
            django: "git+https://github.com/django/django.git@stable/5.1.x#egg=Django"
            taggit: "django-taggit>=2.1.0"
            database: "sqlite3"
            psycopg: "psycopg2>=2.9.2"
            experimental: true
          - python: "3.10"
            django: "git+https://github.com/django/django.git@main#egg=Django"
            taggit: "django-taggit>=2.1.0"
            database: "postgresql"
            psycopg: "psycopg2>=2.9.2"
            experimental: true

    services:
      postgres:
        image: postgres:latest
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
        ports:
          - 5432:5432
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

    steps:
      - uses: actions/checkout@v3
      - name: Set up Python ${{ matrix.python }}
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -e .
          pip install "${{ matrix.psycopg }}"
          pip install "${{ matrix.django }}"
          pip install "${{ matrix.taggit }}"
      - name: Test
        run: ./runtests.py
        env:
          DATABASE_ENGINE: django.db.backends.${{ matrix.database }}
          DATABASE_HOST: localhost
          DATABASE_USER: postgres
          DATABASE_PASS: postgres