-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.19 KB
/
Copy pathci.yml
File metadata and controls
51 lines (43 loc) · 1.19 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
name: ci
on:
push:
branches: ["**"]
pull_request:
jobs:
lint-and-test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint
run: ruff check src tests benchmark docs
- name: Test
env:
REFRESH_PLANNER_LOG_LEVEL: CRITICAL
run: pytest --cov=src/refresh_planner --cov-report=term --cov-report=xml
- name: Smoke the CLI end to end
env:
REFRESH_PLANNER_DB: ci-data/warehouse.duckdb
REFRESH_PLANNER_SEED_DAYS: "60"
REFRESH_PLANNER_SEED_ORDERS_PER_DAY: "60"
REFRESH_PLANNER_LOG_LEVEL: WARNING
run: |
refresh-planner seed
refresh-planner changes
refresh-planner plan
refresh-planner prove
refresh-planner policy
- uses: actions/upload-artifact@v4
if: always()
with:
name: coverage
path: coverage.xml
if-no-files-found: ignore