Skip to content

Commit ec66a12

Browse files
authored
V6.0.0 (#23)
* V6.0.0 * V6.0.0 * V6.0.0 --------- Co-authored-by: ddc <ddc@users.noreply.github.com>
1 parent 95cf2b9 commit ec66a12

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

.github/workflows/workflow.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
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'
@@ -63,9 +68,7 @@ jobs:
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

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
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
340340
uv sync --all-extras
341341
poe linter
342342
poe 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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ packages = ["pythonLogs"]
5555
build = "uv build --wheel"
5656
updatedev.shell = "uv lock && uv sync --no-install-project --all-extras"
5757
linter.shell = "uv run ruff check --fix --select I . && uv run black ."
58+
profile = "uv run python -m cProfile -o cprofile.prof -m pytest"
5859
test = "uv run pytest"
5960

6061
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)