-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (37 loc) · 1.14 KB
/
unit-tests.yml
File metadata and controls
39 lines (37 loc) · 1.14 KB
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
name: Unit Tests
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # need all versions to be able to access server tree commit logs
persist-credentials: false
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true # enable built-in caching of uv
- uses: awalsh128/cache-apt-pkgs-action@5902b33ae29014e6ca012c5d8025d4346556bd40 # latest
with:
packages: python3-dev libldap2-dev libsasl2-dev
version: 1.0
- name: Install dependencies
run: uv sync --locked --all-extras --group test
- name: Test with pytest
run: uv run pytest -rA