diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index ce6fc31..d1eaa9f 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -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 }} diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 3aa0f5b..8d13491 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -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 }} diff --git a/Makefile b/Makefile index bbc7265..297ecbd 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/tests/test_create_issue.py b/src/tests/test_create_issue.py index 2a20595..0c4b535 100644 --- a/src/tests/test_create_issue.py +++ b/src/tests/test_create_issue.py @@ -43,6 +43,7 @@ def gh_repo(mixer): @pytest.fixture() +@pytest.mark.integration def _exist_touch_records(mixer, gh_repo): files = [ 'manage.py', @@ -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( @@ -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()