Skip to content

Commit

Permalink
Skip integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blablatdinov committed Oct 2, 2024
1 parent 37f92b6 commit cf282ef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: |
. .venv/bin/activate
cd src
pytest --doctest-modules --cov --cov-report xml # --cov-fail-under=95
pytest -m 'not integration' --doctest-modules --cov --cov-report xml # --cov-fail-under=95
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: |
. .venv/bin/activate
cd src
pytest --doctest-modules --cov --cov-report xml # --cov-fail-under=95
pytest -m 'not integration' --doctest-modules --cov --cov-report xml # --cov-fail-under=95
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ lint:
# poetry run mypy src

test:
cd src && poetry run pytest --cov=. --cov-report=term-missing:skip-covered -vv
cd src && poetry run pytest -m 'not integration' --cov=. --cov-report=term-missing:skip-covered -vv
3 changes: 3 additions & 0 deletions src/tests/test_create_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def gh_repo(mixer):


@pytest.fixture()
@pytest.mark.integration
def _exist_touch_records(mixer, gh_repo):
files = [
'manage.py',
Expand All @@ -59,6 +60,7 @@ def _exist_touch_records(mixer, gh_repo):
)


@pytest.mark.integration
def test(gh_repo, time_machine):
new_issue = FkNewIssue()
process_repo(
Expand Down Expand Up @@ -94,6 +96,7 @@ def test(gh_repo, time_machine):
}


@pytest.mark.integration
@pytest.mark.usefixtures('_exist_touch_records')
def test_double_process(gh_repo):
new_issue = FkNewIssue()
Expand Down

0 comments on commit cf282ef

Please sign in to comment.