-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.64 KB
/
Copy pathci.yml
File metadata and controls
61 lines (56 loc) · 1.64 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: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install editable package
run: python -m pip install --no-deps -e .
- name: Repository checks
run: python scripts/check.py
- name: Unit tests
run: python -m unittest discover -s tests -v
- name: CLI smoke test
run: python scripts/smoke_test.py
- name: Build artifacts
run: |
python scripts/build_zipapp.py
python -m pip wheel . --no-deps -w dist/wheel
python dist/savedelta.pyz --version
platforms:
name: ${{ matrix.os }} smoke
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install package
run: python -m pip install --no-deps .
- name: Public CLI demo
run: savedelta demo ci-demo
- name: Compare generated snapshots
run: savedelta diff ci-demo/before.sdelta ci-demo/after.sdelta --expect 100:250 --format json --output ci-demo/ci-report.json