Merge pull request #93 from aleivag/fixdbusremote #113
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: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
python: | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
run: sudo apt-get install -y libsystemd-dev | |
- name: Install pystemd | |
run: pip install -e '.[t]' | |
- name: Run unit tests | |
run: pytest --cov=pystemd tests | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run black | |
uses: psf/black@stable | |
- name: Run isort | |
uses: isort/isort-action@v1 | |
typing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: install mypy | |
run: pip install mypy types-psutil | |
- name: run mypy | |
run: mypy |