~sumner/sublime-music

ref: cd2450a83882081d53eb6effddc04d88919c2d60 sublime-music/.builds/build.yml -rw-r--r-- 1.1 KiB
cd2450a8Sumner Evans ci: re-enable failure emails 6 months 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
43
44
45
46
47
48
49
50
image: archlinux
packages:
  - dbus
  - gobject-introspection
  - gtk3
  - mpv
  - python-cairo
  - python-gobject
  - python-poetry
  - xorg-server-xvfb
sources:
  - https://git.sr.ht/~sumner/sublime-music
secrets:
  # PyPi Deploy Credentials for Sublime Music
  - b4190b11-fdf7-4cee-b939-ea9fce44fa12
environment:
  REPO_NAME: sublime-music
triggers:
  - action: email
    condition: failure
    to: ~sumner/sublime-music-devel@lists.sr.ht
tasks:
  - setup: |
      cd ${REPO_NAME}
      poetry install
      echo "cd ${REPO_NAME}" >> ~/.buildenv
      echo "source $(poetry env info -p)/bin/activate" >> ~/.buildenv

  - lint: |
      poetry check
      black --check .
      flake8
      mypy sublime_music tests/**/*.py
      cicd/custom_style_check.py

  - test: |
      Xvfb :119 -screen 0 1024x768x16 &
      export DISPLAY=:119
      pytest

  - build: |
      poetry build

  - test-deploy-pypi: |
      poetry publish --dry-run

  - deploy-pypi: |
      ./cicd/tagged_with_version || echo "Skipping deploy since not tagged with version"
      ./cicd/tagged_with_version || complete-build
      poetry publish