Skip to content

Commit c4999b2

Browse files
committed
CI: Formalize pip-re testing
1 parent e16bac7 commit c4999b2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

ci/azure_template_posix.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
LM_TEST_COPY_ON_WRITE: 1
7070
python312_pre:
7171
python.version: '3.12'
72-
PIP_PRE: true
72+
pip.pre: true
7373
maxParallel: 10
7474

7575
steps:
@@ -119,7 +119,7 @@ jobs:
119119
python -c "import linearmodels; linearmodels.test(['-n', 'auto', '--junitxml=../junit/test-results.xml'])"
120120
popd
121121
displayName: 'Run tests (site-packages)'
122-
condition: eq(variables['test.install'], 'true')
122+
condition: and(ne(variables['test.install'], 'true'), eq(variables['pip.pre'], 'false'))
123123
124124
- script: |
125125
echo "Testing editable install"
@@ -129,7 +129,15 @@ jobs:
129129
echo pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
130130
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
131131
displayName: 'Run tests (editable)'
132-
condition: ne(variables['test.install'], 'true')
132+
condition: and(ne(variables['test.install'], 'false'), eq(variables['pip.pre'], 'false'))
133+
134+
- script: |
135+
echo "Testing pip-pre"
136+
echo pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
137+
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
138+
displayName: 'Run tests (pip pre)'
139+
condition: eq(variables['pip.pre'], 'true')
140+
continueOnError: true
133141
134142
- task: PublishTestResults@2
135143
inputs:

0 commit comments

Comments
 (0)