use variable instead of another call to os.path.dirname #273
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 qmprestore | |
codespell libqmpbackup/ | |
- name: Python code format test | |
run: | | |
sudo pip3 install black==22.3 | |
black --check qmprestore | |
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 | |
qmprestore -h |