|
8 | 8 | strategy: |
9 | 9 | fail-fast: false |
10 | 10 | matrix: |
11 | | - python: ['3.10', '3.11', '3.12', '3.13'] |
| 11 | + python: ['3.11', '3.12', '3.13', '3.14'] |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | steps: |
14 | 14 | - name: Checkout repository |
15 | 15 | uses: actions/checkout@v2 |
16 | | - - name: Setup Python |
17 | | - uses: actions/setup-python@v2 |
| 16 | + - name: Install uv |
| 17 | + uses: astral-sh/setup-uv@v7 |
18 | 18 | with: |
19 | 19 | python-version: ${{ matrix.python }} |
20 | 20 | - name: update APT |
21 | 21 | run: sudo apt-get update |
22 | 22 | - name: Install dependencies |
23 | 23 | run: sudo apt-get install -y libsystemd-dev |
24 | | - - name: Install pystemd |
25 | | - run: pip install -e '.[t]' |
| 24 | + - name: Install environment |
| 25 | + run: uv sync --all-extras --dev |
| 26 | + |
| 27 | + - name: Assert Python Version |
| 28 | + run: uv run python -V |
| 29 | + |
26 | 30 | - name: Run unit tests |
27 | | - run: pytest --cov=pystemd tests |
| 31 | + run: uv run pytest --cov=pystemd tests |
28 | 32 |
|
29 | 33 | formatting: |
30 | 34 | runs-on: ubuntu-latest |
31 | 35 | steps: |
32 | 36 | - name: Checkout repository |
33 | 37 | uses: actions/checkout@v2 |
34 | | - - name: Run black |
35 | | - uses: psf/black@stable |
| 38 | + - name: Run ruff |
| 39 | + uses: astral-sh/ruff-action@v3 |
| 40 | + with: |
| 41 | + src: >- |
| 42 | + pystemd |
| 43 | + examples |
| 44 | + tests |
36 | 45 | - name: Run isort |
37 | 46 | uses: isort/isort-action@v1 |
38 | 47 |
|
|
42 | 51 | steps: |
43 | 52 | - name: Checkout repository |
44 | 53 | uses: actions/checkout@v2 |
45 | | - - name: install mypy |
46 | | - run: pip install mypy types-psutil |
47 | | - - name: run mypy |
48 | | - run: mypy |
| 54 | + - name: Install uv |
| 55 | + uses: astral-sh/setup-uv@v7 |
| 56 | + |
| 57 | + - name: update APT |
| 58 | + run: sudo apt-get update |
| 59 | + - name: Install dependencies |
| 60 | + run: sudo apt-get install -y libsystemd-dev |
| 61 | + |
| 62 | + - name: install environment |
| 63 | + run: uv sync --extra lint |
| 64 | + - name: run pyrefly |
| 65 | + run: uv run pyrefly check pystemd examples tests |
| 66 | + |
0 commit comments