File: test.yml

package info (click to toggle)
python-django-celery-beat 2.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,112 kB
  • sloc: python: 3,440; makefile: 319; sh: 22
file content (66 lines) | stat: -rw-r--r-- 2,031 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
name: CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: blacksmith-4vcpu-ubuntu-2204
    strategy:
      fail-fast: false
      matrix: # https://docs.djangoproject.com/en/stable/faq/install/#what-python-version-can-i-use-with-django
        django-version: ["3.2", "4.2", "5.1", "5.2"]
        python-version: ['3.8','3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.10']
        exclude:
          - django-version: "3.2"
            python-version: "3.11"
          - django-version: "3.2"
            python-version: "3.12"
          - django-version: "3.2"
            python-version: "3.13"
          - django-version: "4.2"
            python-version: "3.13"
          - django-version: "5.1"
            python-version: "3.9"
          - django-version: "5.2"
            python-version: "3.9"
          - django-version: "5.1"
            python-version: "3.8"
          - django-version: "5.2"
            python-version: "3.8"

    services:
      rabbitmq:
        image: rabbitmq
        ports:
          - "5672:5672"

    steps:
    - uses: actions/checkout@v4
    - name: Set up Python ${{ matrix.python-version }}
      uses: useblacksmith/setup-python@v6
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install tox tox-gh-actions
    - name: Test with tox
      run: |
        if [ "${{ matrix.python-version }}" != "pypy-3.10" ]; then
          tox -- --cov=django_celery_beat --cov-report=xml --no-cov-on-fail --cov-report term
        else
          tox
        fi
      env:
        DJANGO: ${{ matrix.django-version }}
    - name: Upload coverage reports to Codecov
      if: ${{ matrix.python-version != 'pypy-3.10' }}
      uses: codecov/codecov-action@v5
      with:
        fail_ci_if_error: true # optional (default = false)
        token: ${{ secrets.CODECOV_TOKEN }}
        verbose: true # optional (default = false)