-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (33 loc) · 1.01 KB
/
ci.yaml
File metadata and controls
42 lines (33 loc) · 1.01 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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.28"
enable-cache: true
- name: Use Python 3.9
uses: actions/setup-python@v6
with:
python-version: "3.9"
- name: Sync Dependencies
run: uv sync --locked --group dev
- name: Check Code Format
run: uv run black --check tardis_dev tests
- name: Run Tests
run: uv run pytest tests/ -q -m "not live"
- name: Run Import Smoke Test
run: |
uv run python -c "from tardis_dev import DEFAULT_ENDPOINT, DEFAULT_DATASETS_ENDPOINT, DEFAULT_CACHE_DIR, Channel, Response, replay, download_datasets, download_datasets_async, get_exchange_details, get_exchange_details_async, clear_cache, default_file_name; print('OK')"