Skip to content

Commit 16e909d

Browse files
committed
changing env var name
1 parent b432a2a commit 16e909d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
python-version: ['3.10', '3.11', '3.12'] # Need to add 3.13 once we resolve outlines issues.
2020
env:
21-
GITHUB_ACTION: 1
21+
CICD: 1
2222
OLLAMA_HOST: "127.0.0.1:5000"
2323
steps:
2424
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,5 @@ python_version = "3.10"
164164

165165
[tool.pytest.ini_options]
166166
markers = [
167-
"qualitative: Marks the test as needing an exact output from an LLM; set by an ENV variable for GITHUB_ACTIONS. All tests marked with this will xfail in CI/CD"
167+
"qualitative: Marks the test as needing an exact output from an LLM; set by an ENV variable for CICD. All tests marked with this will xfail in CI/CD"
168168
]

test/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010

1111
@pytest.fixture(scope="session")
1212
def gh_run() -> int:
13-
return int(os.environ.get("GITHUB_ACTION", 0)) # type: ignore
13+
return int(os.environ.get("CICD", 0)) # type: ignore
1414

1515

1616
def pytest_runtest_setup(item):
1717
# Runs tests *not* marked with `@pytest.mark.qualitative` to run normally.
1818
if not item.get_closest_marker("qualitative"):
1919
return
2020

21-
gh_run = int(os.environ.get("GITHUB_ACTION", 0))
21+
gh_run = int(os.environ.get("CICD", 0))
2222

2323
if gh_run == 1:
2424
pytest.skip(
25-
reason="Skipping qualitative test: got env variable GITHUB_ACTION == 1. Used only in gh workflows."
25+
reason="Skipping qualitative test: got env variable CICD == 1. Used only in gh workflows."
2626
)

0 commit comments

Comments
 (0)