File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Basic Checks
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ paths :
7+ - " **/*.py"
8+ - " .github/workflows/ci.yaml"
9+ pull_request :
10+ branches : ["main"]
11+ paths :
12+ - " **/*.py"
13+ - " .github/workflows/ci.yaml"
14+
15+ jobs :
16+ lint :
17+ runs-on : ubuntu-latest
18+ defaults :
19+ run :
20+ working-directory : .
21+ steps :
22+ - name : Checkout the code
23+ uses : actions/checkout@v4
24+
25+ - name : Set up ruff
26+ uses : astral-sh/ruff-action@v3
27+ with :
28+ src : " ."
29+
30+ - name : Run ruff check and lint
31+ run : |
32+ ruff check
33+ ruff format
34+
35+ # test:
36+ # needs: lint
37+ # runs-on: ubuntu-latest
38+
39+ # steps:
40+ # - name: Checkout the code
41+ # uses: actions/checkout@v4
42+
43+ # - name: Set up uv
44+ # uses: astral-sh/setup-uv@v6
45+ # with:
46+ # enable-cache: true
47+ # cache-dependency-glob: "./uv.lock"
48+
49+ # - name: Install dependencies
50+ # run: uv sync --locked
51+
52+ # - name: Run tests with pytest
53+ # run: uv run pytest
You can’t perform that action at this time.
0 commit comments