Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: crabpy tests

on:
push:
pull_request:
paths:
- crabpy/**
- tests/**
Expand Down Expand Up @@ -39,7 +39,13 @@ jobs:
- name: Python tests
run: |
flake8
coverage run --source=crabpy -m pytest tests --crab-integration --capakey-integration

- name: Coveralls
uses: coverallsapp/github-action@v2
pytest --cov=crabpy --cov-report=xml tests --crab-integration --capakey-integration

- name: Code Coverage Report
if: matrix.python-version == '3.11'
uses: orgoro/coverage@v3.2
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 0.8
thresholdModified: 0.8
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pip-log.txt

# Unit test / coverage reports
.coverage
coverage.xml
.tox
nosetests.xml
.pytest_cache/
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"pytest==8.3.3",
"pytest-cov==6.0.0",
"responses==0.25.3",
"flake8==7.1.1",
"flake8-bugbear==24.8.19",
Expand All @@ -58,3 +59,9 @@ main = "crabpy:main"
packages = [
"/crabpy",
]

[tool.coverage.run]
source = ["crabpy"]
omit = [
"crabpy/gateway/crab.py",
]
10 changes: 7 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml --extra dev --allow-unsafe -o requirements-dev.txt
attrs==24.2.0
# via flake8-bugbear
black==24.10.0
Expand All @@ -13,7 +11,9 @@ charset-normalizer==3.4.0
click==8.1.7
# via black
coverage==7.6.3
# via coveralls
# via
# coveralls
# pytest-cov
coveralls==4.0.1
# via crabpy (pyproject.toml)
decorator==5.1.1
Expand Down Expand Up @@ -69,6 +69,10 @@ pycodestyle==2.12.1
pyflakes==3.2.0
# via flake8
pytest==8.3.3
# via
# crabpy (pyproject.toml)
# pytest-cov
pytest-cov==6.0.0
# via crabpy (pyproject.toml)
pyyaml==6.0.2
# via
Expand Down
Loading