~cedric/stegano

stegano/.builds/debian.yml -rw-r--r-- 1.1 KiB
e6840417Cédric Bonhomme chg: [workflows] Updated build workflows. 8 days ago
                                                                                
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
image: debian/bullseye
sources:
  - https://git.sr.ht/~cedric/stegano
packages:
  - python3
  - python3-dev
  - python3-pip
  - python3-setuptools
  - python3-venv
  - rustc
  - cargo
  - libffi-dev
  - libssl-dev
  - libjpeg-dev
  - libpng-dev
  - libfreetype6-dev
  - ffmpeg
  - libsm6
  - libxext6
environment:
  project: stegano
tasks:
  - dependencies: |
      pip3 install --user poetry
      export PATH="$PATH:/home/build/.local/bin"
      cd ${project}
      poetry install
  - lint: |
      export PATH="$PATH:/home/build/.local/bin"
      cd ${project}
      # stop the build if there are Python syntax errors or undefined names
      poetry run flake8 stegano --count --select=E9,F63,F7,F82 --show-source --statistics
      # exit-zero treats all errors as warnings.
      poetry run flake8 stegano --count --max-complexity=10 --max-line-length=127 --statistics
  - test: |
      export PATH="$PATH:/home/build/.local/bin"
      cd ${project}
      poetry run nose2 -v --pretty-assert
  - typecheck: |
      export PATH="$PATH:/home/build/.local/bin"
      cd ${project}
      poetry run mypy .