File tree Expand file tree Collapse file tree 3 files changed +23
-18
lines changed
Expand file tree Collapse file tree 3 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 1818 include :
1919 - os : ' macos-14-arm64'
2020 runs-on : ' macos-14'
21+ defaults :
22+ run :
23+ working-directory : ${{ github.workspace }}
2124 steps :
2225 - uses : actions/checkout@v6
2326
@@ -28,14 +31,16 @@ jobs:
2831 run : uv python install ${{ matrix.python-version }}
2932
3033 - name : Install dependencies
31- run : |
32- uv venv
33- uv pip install -e .[test]
34+ run : uv sync --all-extras
3435 shell : bash
3536
3637 - name : Run tests with coverage
37- run : uv run poe test
38- shell : bash
38+ uses : nick-fields/retry@v3
39+ with :
40+ timeout_minutes : 2
41+ max_attempts : 3
42+ command : uv run pytest
43+ shell : bash
3944
4045 - name : Upload coverage to Codecov
4146 if : matrix.python-version == '3.14' && matrix.os == 'ubuntu-latest'
6368 run : uv python install 3.14
6469
6570 - name : Build package
66- run : |
67- uv venv
68- uv build
71+ run : uv build
6972
7073 - name : Upload artifacts
7174 uses : actions/upload-artifact@v6
Original file line number Diff line number Diff line change 4040- [ Environment Variables] ( #env-variables-optional )
4141- [ Flexible Configuration Options] ( #flexible-configuration-options )
4242- [ Development] ( #development )
43- - [ Building DEV Environment and Running Tests] ( #building -dev-environment-and- running-tests )
44- - [ Building Wheel from Source ] ( #building-wheel-from-source )
43+ - [ Create DEV Environment, Running Tests and Building Wheel ] ( #create -dev-environment-running-tests-and-building-wheel )
44+ - [ Optionals ] ( #optionals )
4545- [ License] ( #license )
4646- [ Support] ( #support )
4747
@@ -329,24 +329,25 @@ RotateWhen.MONDAY # "W0"
329329
330330# Development
331331
332- Must have [ UV] ( https://uv.run/docs/getting-started/installation ) ,
333- [ Black] ( https://black.readthedocs.io/en/stable/getting_started.html ) , and
334- [ Ruff] ( https://docs.astral.sh/ruff/installation/ ) installed.
332+ Must have [ UV] ( https://uv.run/docs/getting-started/installation ) ,
333+ [ Black] ( https://black.readthedocs.io/en/stable/getting_started.html ) ,
334+ [ Ruff] ( https://docs.astral.sh/ruff/installation/ ) , and
335+ [ Poe the Poet] ( https://poethepoet.naber.dev/installation ) installed.
335336
336- ## Building DEV Environment and Running Tests
337+ ## Create DEV Environment, Running Tests and Building Wheel
337338
338339``` shell
339- uv venv
340340uv sync --all-extras
341341poe linter
342342poe test
343- poe test-integration
343+ poe build
344344```
345345
346- ## Building Wheel from Source
346+ ## Optionals
347347
348+ ### Create a cprofile.prof file from unit tests
348349``` shell
349- poe build
350+ poe profile
350351```
351352
352353
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ packages = ["pythonLogs"]
5555build = " uv build --wheel"
5656updatedev.shell = " uv lock && uv sync --no-install-project --all-extras"
5757linter.shell = " uv run ruff check --fix --select I . && uv run black ."
58+ profile = " uv run python -m cProfile -o cprofile.prof -m pytest"
5859test = " uv run pytest"
5960
6061[tool .pytest .ini_options ]
You can’t perform that action at this time.
0 commit comments