-
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (36 loc) · 997 Bytes
/
ci-ubuntu-latest.yml
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
name: CI on ubuntu-latest
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: abbbi/github-actions-tune@v1
- name: Run codespell
run: |
sudo apt-get update
sudo apt-get install codespell -y
codespell README.md
codespell qmpbackup
codespell qmprebase
codespell libqmpbackup/
- name: Python code format test
run: |
sudo pip3 install black==22.3
black --check qmprebase
black --check qmpbackup
black --check .
- name: Install QEMU
run: |
sudo apt-get update
sudo apt-get install -y qemu-system-x86 libguestfs-tools
- name: Install qmpbackup and requirements
run: |
sudo pip3 install -r requirements.txt
sudo python3 setup.py install
- name: Execute testscript
run: cd t && sudo sh runtest
- name: Execute
run: |
qmpbackup -h
qmprebase -h