Skip to content

Commit af9d882

Browse files
authored
Merge pull request #25 from thalissonvs/feat/tests
Finish Unit Tests
2 parents 9b5e5ae + 3c6a527 commit af9d882

40 files changed

+4055
-740
lines changed

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PyDoll Tests Suite
2+
3+
on: push
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up Python 3.12
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: "3.12"
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install poetry
17+
poetry install
18+
- name: Run tests with coverage
19+
run: |
20+
poetry run pytest -s -x --cov=pydoll -vv --cov-report=xml
21+
22+
- name: Upload coverage to Codecov
23+
uses: codecov/codecov-action@v5
24+
with:
25+
file: ./coverage.xml
26+
flags: tests
27+
name: PyDoll Tests
28+
fail_ci_if_error: true
29+
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 90%
6+
threshold: 0%
7+
base: auto

poetry.lock

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)