Skip to content

Commit ed18b1f

Browse files
committed
unit-tests
1 parent abf6c6e commit ed18b1f

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/unit-tests.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest, macos-latest, windows-latest]
12-
python-version: ["3.11", "3.12", "3.13"]
1312

1413
steps:
1514
- uses: actions/checkout@v5
16-
- name: Set up Python ${{ matrix.python-version }}
15+
- name: Set up Python
1716
uses: actions/setup-python@v6
1817
with:
19-
python-version: ${{ matrix.python-version }}
18+
python-version: "3.14"
2019
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
pip install -r requirements.txt
24-
pip install -r requirements_test.txt
20+
run: pipx install hatch --python python3.14
2521
- name: Test with pytest
26-
run: pytest -v --cov-config=pyproject.toml --cov=bring_api --cov-report=xml
22+
run: hatch test --all
2723
- name: Upload coverage to Codecov
2824
uses: codecov/codecov-action@v5
2925
with:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ extra-dependencies = [
6262
"pytest-cov==7.0.0",
6363
"syrupy==5.0.0",
6464
]
65+
extra-args = ["--cov-report=xml", "-vv"]
6566

6667
[tool.hatch.envs.default.scripts]
6768
docs-serve = "mkdocs serve"

0 commit comments

Comments
 (0)