File tree Expand file tree Collapse file tree 5 files changed +132
-16
lines changed Expand file tree Collapse file tree 5 files changed +132
-16
lines changed Original file line number Diff line number Diff line change
1
+ name : pre-commit
2
+
3
+ on :
4
+ pull_request : null
5
+ push :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Install uv
15
+ uses : astral-sh/setup-uv@v4
16
+ - name : Set up Python
17
+ run : uv python install
18
+ - name : Install the project
19
+ run : uv sync --all-extras --dev
20
+ - name : Run tests and generate coverage
21
+ run : |
22
+ uv run coverage run -m pytest
23
+ uv run coverage xml
24
+ - name : Upload coverage to Codecov
25
+ uses : codecov/codecov-action@v5
26
+ with :
27
+ fail_ci_if_error : true
28
+ files : ./coverage.xml
29
+ flags : unittests
30
+ name : codecov-umbrella
31
+ token : ${{ secrets.CODECOV_TOKEN }}
32
+ verbose : true
Original file line number Diff line number Diff line change 1
1
name : pre-commit
2
-
3
- on :
4
- pull_request :
2
+ ' on ' :
3
+ pull_request : null
5
4
push :
6
- branches : [main]
7
-
5
+ branches :
6
+ - main
8
7
jobs :
9
8
pre-commit :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
- - uses : actions/checkout@v4
13
- - uses : actions/setup-python@v5
14
- - uses : pre-commit/action@v3.0.1
11
+ - uses : actions/checkout@v4
12
+ - uses : actions/setup-python@v5
13
+ - uses : pre-commit/action@v3.0.1
Original file line number Diff line number Diff line change 1
1
repos :
2
- - repo : https://github.com/pre-commit/pre-commit-hooks
2
+ - repo : ' https://github.com/pre-commit/pre-commit-hooks'
3
3
rev : v5.0.0
4
4
hooks :
5
- - id : check-added-large-files
6
- - id : check-toml
7
- - id : end-of-file-fixer
8
- - id : trailing-whitespace
9
- - repo : https://github.com/codespell-project/codespell
5
+ - id : check-added-large-files
6
+ - id : check-toml
7
+ - id : check-yaml
8
+ - id : end-of-file-fixer
9
+ - id : trailing-whitespace
10
+ - repo : ' https://github.com/codespell-project/codespell'
10
11
rev : v2.3.0
11
12
hooks :
12
- - id : codespell
13
- - repo : https://github.com/astral-sh/ruff-pre-commit
13
+ - id : codespell
14
+ - repo : ' https://github.com/astral-sh/ruff-pre-commit'
14
15
rev : v0.8.2
15
16
hooks :
16
17
- id : ruff
17
18
- id : ruff-format
19
+ - repo : ' https://github.com/adrienverge/yamllint'
20
+ rev : v1.35.1
21
+ hooks :
22
+ - id : yamllint
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ dev = [
23
23
" ipython==8.30.0" ,
24
24
" pre-commit==4.0.1" ,
25
25
" pytest==8.3.4" ,
26
+ " pytest-cov==6.0.0"
26
27
]
27
28
28
29
[build-system ]
You can’t perform that action at this time.
0 commit comments