-
Notifications
You must be signed in to change notification settings - Fork 36
46 lines (43 loc) · 1.04 KB
/
ci.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
41
42
43
44
45
46
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