Skip to content

Commit 06f21e6

Browse files
zachyzissouZach Gonser
andauthored
chore: restore missing baseline workflow and governance files (#32)
Co-authored-by: Zach Gonser <zachgonser@Zachs-Mac-Studio.local>
1 parent 0fa5166 commit 06f21e6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

0 commit comments

Comments
 (0)