-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (30 loc) · 980 Bytes
/
ci.yaml
File metadata and controls
39 lines (30 loc) · 980 Bytes
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: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install Poetry
run: python -m pip install poetry==1.8.5
- name: Install Dependencies
run: poetry install
- name: Check Code Format
run: poetry run black --check tardis_dev tests
- name: Run Tests
run: poetry run pytest tests/ -q -m "not live"
- name: Run Import Smoke Test
run: |
poetry 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')"