Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,32 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, windows-2019]
python-version: ["3.8", "3.9", "3.10"]
fail-fast: false
steps:
- name: Checkout repository to $GITHUB_WORKSPACE
uses: actions/checkout@v2

- name: Setup bootstrap Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: ${{ matrix.python-version }}

- name: Install Poetry for Linux
if: runner.os == 'Linux'
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - --version 1.1.5
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install Poetry for Windows
if: runner.os == 'Windows'
run: |
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py -UseBasicParsing).Content | python - --version 1.1.5
echo "$env:APPDATA\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Install Python dependencies (Linux-only)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install libgirepository1.0-dev libcairo2-dev qemu-utils libvirt-dev

- name: Install Python dependencies
run: make setup

Expand All @@ -52,10 +50,12 @@ jobs:

- name: Calculate code coverage
run: make coverage
if: matrix.python-version == '3.8'

- name: Run black/flake8/isort/mypy
run: make check
if: matrix.python-version == '3.8'

- name: Run ShellCheck
if: runner.os == 'Linux'
uses: ludeeus/action-shellcheck@0.5.0
if: runner.os == 'Linux' && matrix.python-version == '3.8'
uses: ludeeus/action-shellcheck@0.5.0
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# python cache
__pycache__
*.py[co]

# it's auto generated by poetry
lisa.egg-info
Expand All @@ -21,3 +22,5 @@ htmlcov
# auto-generated test table & specifications
/docs/run_test/test_summary.rst
/docs/run_test/test_spec.rst

[.][v]env/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ paramiko = "^2.10.1"
pluggy = "^0.13.1"
pypiwin32 = {version = "^223", platform = "win32", optional=true}
pytest-html = "^3.1.1"
python = "^3.8"
python = ">=3.8"
python-dateutil = "^2.8.1"
retry = "^0.9.2"
spurplus = "^2.3.4"
Expand Down