-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.48 KB
/
Copy pathci.yml
File metadata and controls
61 lines (56 loc) · 1.48 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches: [master, main]
pull_request:
jobs:
quality:
name: lint + format + types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e .[dev]
- run: ruff check .
- run: ruff format --check .
- run: mypy rice
tests:
name: unit/cli/security (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e .[dev]
- run: pytest tests/unit tests/cli tests/security -q
integration:
name: integration + recovery
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e .[dev]
- run: pytest tests/integration tests/recovery -q
debian:
name: Debian 13 (trixie)
runs-on: ubuntu-latest
container:
image: debian:trixie
steps:
- uses: actions/checkout@v4
- run: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip python3-venv
- run: |
python3 -m venv .venv
.venv/bin/pip install -e .[dev]
.venv/bin/pytest tests/unit tests/cli -q