File tree Expand file tree Collapse file tree 2 files changed +39
-10
lines changed
Expand file tree Collapse file tree 2 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 11---
22
3- name : CI
3+ name : Test
44
55on :
66 push :
2828 - name : Install uv
2929 uses : astral-sh/setup-uv@v3
3030
31- - name : " Lint"
32- run : |
33- uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-commit --verbose
34- uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-push --verbose
35- uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage manual --verbose
36-
3731 - name : " Run tests"
3832 run : |
3933 # We run tests against "." and not the tests directory as we test the README
4539 with :
4640 fail_ci_if_error : true
4741 token : ${{ secrets.CODECOV_TOKEN }}
48-
49- - uses : pre-commit-ci/lite-action@v1.0.3
50- if : always()
Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : Lint
4+
5+ on :
6+ push :
7+ branches : [main]
8+ pull_request :
9+ branches : [main]
10+ schedule :
11+ # * is a special character in YAML so you have to quote this string
12+ # Run at 1:00 every day
13+ - cron : ' 0 1 * * *'
14+
15+ jobs :
16+ build :
17+
18+ strategy :
19+ matrix :
20+ python-version : ["3.12"]
21+ platform : ["ubuntu-latest", "windows-latest"]
22+
23+ runs-on : ${{ matrix.platform }}
24+
25+ steps :
26+ - uses : actions/checkout@v4
27+
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@v3
30+
31+ - name : " Lint"
32+ run : |
33+ uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-commit --verbose
34+ uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-push --verbose
35+ uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage manual --verbose
36+
37+ - uses : pre-commit-ci/lite-action@v1.0.3
38+ if : always()
You can’t perform that action at this time.
0 commit comments