Skip to content

Commit d522dfa

Browse files
authored
Merge pull request #32 from dadocracia/feat/pytest-randomly
Adiciona e Configura o Pytest Randomly
2 parents 5319366 + 69ff5e7 commit d522dfa

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.github/workflows/pytest.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: pip install uv
1919

2020
- name: Instalando Dependências
21-
run: uv add pytest
21+
run: uv add pytest pytest-cov pytest-randomly
2222

2323
- name: Executando os Testes
24-
run: uv run pytest
24+
run: uv run pytest -vv --cov --randomly-seed=last

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dev-dependencies = [
1818
"mkdocstrings>=0.26.1",
1919
"pre-commit>=3.8.0",
2020
"pytest-cov>=5.0.0",
21+
"pytest-randomly>=3.15.0",
2122
"pytest>=8.3.3",
2223
]
2324

@@ -48,8 +49,7 @@ format = 'ruff check . --fix && ruff format .'
4849
interrogate = 'interrogate -vv'
4950
lint = 'ruff check . && ruff check . --diff'
5051
pre-commit = 'pre-commit run'
51-
test = 'pytest -vv'
52-
test-cov = 'pytest --cov'
52+
test = 'uv run pytest -vv --cov --randomly-seed=last'
5353

5454
[tool.ruff]
5555
line-length = 120

uv.lock

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)