Merge pull request #163 from jhollowe/bugfix/qemu-split #152
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: | |
push: | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
unit-test: | |
continue-on-error: ${{ github.repository == 'proxmoxer/proxmoxer' }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache PIP packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-python${{ matrix.python-version }}-${{ hashFiles('*requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip-python${{ matrix.python-version }}- | |
${{ runner.os }}-pip- | |
- name: Install pip Packages | |
run: pip install -r test_requirements.txt | |
- name: Install Self as Package | |
run: pip install . | |
- name: Run Tests | |
run: pytest -v --cov tests/ | |
- name: Run pre-commit lint/format checks | |
uses: pre-commit/[email protected] | |
- name: Upload coverage data to coveralls.io | |
if: github.repository == 'proxmoxer/proxmoxer' | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: Unit Test (${{ matrix.python-version }}) | |
COVERALLS_PARALLEL: true | |
complete: | |
name: Finalize Coveralls Report | |
if: github.repository == 'proxmoxer/proxmoxer' | |
needs: unit-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/[email protected] | |
with: | |
parallel-finished: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} |