Skip to content

Commit 7c1331f

Browse files
committed
Enable Codecov
1 parent 80286d6 commit 7c1331f

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.github/workflows/python.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ jobs:
2121
python -m pip install --upgrade pip setuptools wheel poetry
2222
poetry install
2323
- name: Test with pytest
24-
run: poetry run pytest tests --junitxml=junit/test-results.xml --cov=sqlorm --cov-report=xml --cov-report=html
24+
run: poetry run pytest tests --cov=sqlorm --cov-report=xml
2525
- name: Lint with Ruff
2626
run: poetry run ruff check
27-
- name: Upload pytest test results
28-
uses: actions/upload-artifact@v4
29-
with:
30-
name: pytest-results-${{ matrix.python-version }}
31-
path: junit/test-results-${{ matrix.python-version }}.xml
32-
if: ${{ always() }}
27+
- name: Upload coverage reports to Codecov
28+
uses: codecov/[email protected]
29+
env:
30+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**SQL-focused Python ORM**
44

5-
![GitHub License](https://img.shields.io/github/license/hyperflask/sqlorm) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hyperflask/sqlorm/python.yml?branch=main) ![Code coverage](https://img.shields.io/badge/coverage-90%25-blue)
5+
![GitHub License](https://img.shields.io/github/license/hyperflask/sqlorm) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hyperflask/sqlorm/python.yml?branch=main) ![Codecov](https://img.shields.io/codecov/c/github/hyperflask/sqlorm)
66

77
ORMs and developers often end up in a love/hate relationship. The advantages of ORMs (the mapping of objects) can be negated by their compromises (have to learn their pseudo sql syntax, less control over the generated sql, low performance).
88

pyproject.toml

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ packages = [{include = "sqlorm"}]
1111
[tool.poetry.dependencies]
1212
python = "^3.10"
1313

14-
[tool.poetry.group.dev.dependencies]
15-
pytest = "^8.0.0"
16-
pytest-cov = "^4.1.0"
17-
ruff = "^0.4.3"
18-
1914
[tool.poetry.group.postgresql.dependencies]
2015
psycopg = {extras = ["binary"], version = "^3.1.18"}
2116

2217
[tool.poetry.group.mysql.dependencies]
2318
mysql-connector-python = "^8.3.0"
2419

25-
[build-system]
26-
requires = ["poetry-core"]
27-
build-backend = "poetry.core.masonry.api"
20+
[tool.poetry.group.dev.dependencies]
21+
pytest = "^8.0.0"
22+
pytest-cov = "^4.1.0"
23+
ruff = "^0.4.3"
2824

2925
[tool.ruff]
3026
include = ["sqlorm/**/*.py"]
3127
line-length = 100
3228

3329
[tool.ruff.lint]
34-
exclude = ["sqlorm/__init__.py"]
30+
exclude = ["sqlorm/__init__.py"]
31+
32+
[build-system]
33+
requires = ["poetry-core"]
34+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)