Skip to content

Commit

Permalink
Updating the pytest command and up including the extra config needed …
Browse files Browse the repository at this point in the history
…for marking a test as slow.
  • Loading branch information
drewoldag committed May 13, 2024
1 parent 0f8818d commit 7a1bcd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run unit tests with pytest
run: |
python -m pytest tests --runslow
python -m pytest tests
2 changes: 1 addition & 1 deletion .github/workflows/testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run unit tests with pytest
run: |
python -m pytest tests --cov=lephare --cov-report=xml
python -m pytest tests -m "not slow" --cov=lephare --cov-report=xml
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ addopts = [
"--cov=rail",
"--cov-report=html"
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]

[tool.pylint]
disable = [
Expand Down

0 comments on commit 7a1bcd7

Please sign in to comment.