Skip to content

Commit 2aca0ec

Browse files
committed
ci(python): add GitHub Actions workflow
1 parent 9f6deee commit 2aca0ec

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
ci:
13+
name: CI
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Use Python 3.9
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.9"
24+
25+
- name: Install Poetry
26+
run: python -m pip install poetry==1.8.5
27+
28+
- name: Install Dependencies
29+
run: poetry install
30+
31+
- name: Check Code Format
32+
run: poetry run black --check tardis_dev tests
33+
34+
- name: Run Tests
35+
run: poetry run pytest tests/ -q -m "not live"
36+
37+
- name: Run Import Smoke Test
38+
run: |
39+
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')"

0 commit comments

Comments
 (0)