File tree Expand file tree Collapse file tree 6 files changed +255
-1
lines changed
Expand file tree Collapse file tree 6 files changed +255
-1
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " pip"
4+ directory : " /"
5+ schedule :
6+ interval : " weekly"
Original file line number Diff line number Diff line change 1+ ## Description
2+ <!--
3+ Describe the change at a high-level.
4+ -->
5+
6+ ## Checklist
7+ <!--
8+ Please consider the following when submitting code changes.
9+
10+ Note: You can check the boxes once you submit, or put an x in the [ ]
11+
12+ like [x]
13+ -->
14+
15+ - [ ] Tests have been added in the prescribed format
16+ - [ ] ` CHANGELOG.md ` has been updated to reflect changes
17+ - [ ] Version has been updated in ` pyproject.toml `
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push]
4+
5+ permissions :
6+ contents : write
7+
8+ concurrency :
9+ group : ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
10+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch }}
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+ env :
16+ PYTHON_VERSION : " 3.11"
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Install Python and UV
20+ uses : astral-sh/setup-uv@v5
21+ with :
22+ python-version : ${{ env.PYTHON_VERSION }}
23+ - name : Install dependencies
24+ run : |
25+ uv sync --group dev
26+ - name : Run sanity check
27+ run : |
28+ cd dataframe_expectations
29+ uv run python sanity_checks.py
30+ cd ..
31+ - name : Run tests
32+ run : |
33+ uv run pytest tests/ --cov=dataframe_expectations
34+
35+ lint :
36+ runs-on : ubuntu-latest
37+ env :
38+ PYTHON_VERSION : " 3.11"
39+ steps :
40+ - uses : actions/checkout@v4
41+ - name : Install Python and UV
42+ uses : astral-sh/setup-uv@v5
43+ with :
44+ python-version : ${{ env.PYTHON_VERSION }}
45+ - name : Install dependencies
46+ run : |
47+ uv sync --group dev
48+ - name : Pre-commit
49+ run : |
50+ uv run pre-commit run --all-files --show-diff-on-failure
51+
52+ docs :
53+ runs-on : ubuntu-latest
54+ env :
55+ PYTHON_VERSION : " 3.11"
56+ needs : [test, lint]
57+ steps :
58+ - uses : actions/checkout@v4
59+ - name : Install Python and UV
60+ uses : astral-sh/setup-uv@v5
61+ with :
62+ python-version : ${{ env.PYTHON_VERSION }}
63+ - name : Install dependencies
64+ run : |
65+ uv sync --group docs
66+ - name : Build docs
67+ run : |
68+ cd docs
69+ uv run sphinx-build source build/html
70+ cd ..
Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ __pycache__/
77.venv
88
99# Ignore generated documentation
10- docs /build /
10+ docs /build /
11+
12+ # Unit test coverage
13+ .coverage
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ dev = [
1616 " pytest>=8.4.2" ,
1717 " pre-commit>=3.0.0" ,
1818 " ruff>=0.1.0" ,
19+ " pytest-cov>=7.0.0" ,
1920]
2021docs = [
2122 " sphinx>=4.0.0" ,
You can’t perform that action at this time.
0 commit comments