-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (85 loc) · 3.13 KB
/
Copy pathci.yml
File metadata and controls
91 lines (85 loc) · 3.13 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: CI
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Python ${{ matrix.python }} / Ubuntu
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python }}
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install -e ".[dev]"
- run: python -m pip check
- run: python -m pytest
- run: python -m ruff check .
- run: python -m ruff format --check .
- run: python -m mypy
- run: python scripts/verify_reproducible.py
- run: datary generate noisy-sensor --seed 1 --output sample.jsonl
- run: datary record demo --format jsonl --time-field timestamp < sample.jsonl
- run: datary inspect demo --quality
- run: datary inspect demo --plot value
- run: datary report demo
- run: datary replay demo --no-timing > replay.jsonl
- run: python -m build
- run: python scripts/build_checksums.py
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: dist-${{ matrix.python }}
path: |
dist/*
demo/reports/*
demo/plots/*
platform-smoke:
name: Python ${{ matrix.python }} / ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
python: ["3.9", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python }}
cache: pip
- run: python -m pip install -e ".[dev]"
- run: python -m pytest
- run: datary --version
- run: datary generate sine --seed 1 --duration 1 --output sample.jsonl
- run: datary inspect sample.jsonl --format jsonl --time-field timestamp
wheel-smoke:
name: Clean wheel installation
needs: test
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
- run: python -m pip install build
- run: python -m build
- run: python -m venv /tmp/datary-smoke
- run: /tmp/datary-smoke/bin/pip install dist/*.whl
- run: /tmp/datary-smoke/bin/pip check
- run: /tmp/datary-smoke/bin/datary --version
- run: /tmp/datary-smoke/bin/datary generate sine --duration 1 --output /tmp/sine.jsonl
- run: /tmp/datary-smoke/bin/datary inspect /tmp/sine.jsonl --format jsonl --time-field timestamp