File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : baseline-python-ci
2+
3+ on :
4+ push :
5+ branches : ['main', 'master']
6+ pull_request :
7+ branches : ['main', 'master']
8+
9+ jobs :
10+ baseline-python :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-python@v5
15+ with :
16+ python-version : ' 3.12'
17+ - name : Install dependencies
18+ run : |
19+ python -m pip install --upgrade pip
20+ if [ -f requirements.txt ]; then
21+ pip install -r requirements.txt
22+ else
23+ echo "No requirements.txt; skipping dependency install."
24+ fi
25+ pip install ruff pytest
26+ - name : Lint
27+ run : ruff check .
28+ - name : Test
29+ run : |
30+ if [ -f pyproject.toml ] || [ -d tests ] || find . -name '*_test.py' | grep -q .; then
31+ pytest -q
32+ else
33+ echo "No tests found; skipping."
34+ fi
You can’t perform that action at this time.
0 commit comments