File: builds.yaml

package info (click to toggle)
mat2 0.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,428 kB
  • sloc: python: 3,758; makefile: 7
file content (47 lines) | stat: -rw-r--r-- 1,302 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
name: CI for Python versions
on:
  pull_request:
  push:
  schedule:
    - cron: '0 16 * * 5'

jobs:
  linting:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: actions/setup-python@v5
      - run: pip install ruff
      - run: | 
          ruff check .
  build:
    needs: linting
    runs-on: ubuntu-latest
    strategy:
        matrix:
          python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
    steps:
      - uses: actions/checkout@v5
      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          sudo apt update && \
          sudo apt-get install --no-install-recommends --no-install-suggests --yes \
            ffmpeg \
            gir1.2-gdkpixbuf-2.0 \
            gir1.2-poppler-0.18 \
            gir1.2-rsvg-2.0 \
            gobject-introspection \
            libcairo2-dev \
            libgirepository1.0-dev \
            libgirepository-2.0-dev \
            libimage-exiftool-perl \
            python3-gi-cairo \
            python3-mutagen \
            webp-pixbuf-loader
          pip install .
      - name: Build and run the testsuite
        run:  python3 -m unittest discover -v