Coverage for tests/conftest.py: 100%
3 statements
« prev ^ index » next coverage.py v7.15.0, created at 2026-07-12 16:04 +0200
« prev ^ index » next coverage.py v7.15.0, created at 2026-07-12 16:04 +0200
1import os
3import pytest
6def pytest_runtest_setup(item):
7 for mark in item.iter_markers(): # pragma: no cover
8 if mark.name == "forgejo" and "FORGEJO_ACTIONS" not in os.environ:
9 pytest.skip("Not in a Forgejo Actions workflow")
10 if (
11 mark.name == "gcloud"
12 and "GOOGLE_APPLICATION_CREDENTIALS" not in os.environ
13 ):
14 pytest.skip("No Google Application Credentials found")
15 if (
16 mark.name == "identity_pool"
17 and "GCP_ATTEST_IDENTITY_POOL_URL" not in os.environ
18 ):
19 pytest.skip("No identity pool URL defined")
20 if (
21 mark.name == "service_account"
22 and "GCP_ATTEST_SERVICE_ACCOUNT_EMAIL" not in os.environ
23 ):
24 pytest.skip("No service account email defined")