Skip to content

Commit ddc0d49

Browse files
committed
move code checks to arch ci build
1 parent 073661a commit ddc0d49

File tree

2 files changed

+21
-26
lines changed

2 files changed

+21
-26
lines changed

.builds/arch.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ sources:
44
- https://aur.archlinux.org/python-xdg-base-dirs.git
55
- https://aur.archlinux.org/python-dacite.git
66
packages:
7+
- ruff
8+
- mypy
79
- python-pytest
810
tasks:
9-
- xdg-base-dirs: |
10-
cd python-xdg-base-dirs
11-
makepkg -si --noconfirm
12-
- dacite: |
13-
cd python-dacite
14-
makepkg -si --noconfirm
15-
- makepkg: |
16-
cd qbpm/contrib
17-
sed -i 's|^source.*|source=("git+file:///home/build/qbpm")|' PKGBUILD
18-
sudo pacman -Sy
19-
makepkg -si --noconfirm
20-
- pytest: |
21-
cd qbpm
22-
pytest tests
11+
- format: ruff format --check qbpm
12+
- lint: ruff check qbpm
13+
- deps: |
14+
makepkg -si --noconfirm --dir python-xdg-base-dirs
15+
makepkg -si --noconfirm --dir python-dacite
16+
mkdir build
17+
cp qbpm/contrib/PKGBUILD build
18+
sed -i 's|^source.*|source=("git+file:///home/build/qbpm")|' build/PKGBUILD
19+
makepkg -s --noconfirm --dir build
20+
- types: mypy qbpm
21+
- tests: pytest qbpm/tests
22+
- install: makepkg -i --noconfirm --noextract --dir build
2323
- run: |
2424
mkdir -p ~/.config/qutebrowser
2525
touch ~/.config/qutebrowser/config.py

.builds/nix.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@ sources:
44
environment:
55
NIX_CONFIG: "experimental-features = nix-command flakes"
66
tasks:
7-
- format: |
8-
cd qbpm
9-
nix develop --quiet -c ruff format --check
10-
- ruff: |
11-
cd qbpm
12-
nix develop -c ruff check
13-
- mypy: |
14-
cd qbpm
15-
nix develop -c mypy src tests
16-
- build: |
17-
cd qbpm
18-
nix build --quiet
7+
- build: nix build ./qbpm
8+
- install: nix profile install ./qbpm
9+
- run: |
10+
mkdir -p ~/.config/qutebrowser
11+
touch ~/.config/qutebrowser/config.py
12+
qbpm new profile
13+
qbpm list | grep profile

0 commit comments

Comments
 (0)