Skip to content

Commit

Permalink
CI: Formalize pip-re testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Jan 4, 2024
1 parent e16bac7 commit c4999b2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ci/azure_template_posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
LM_TEST_COPY_ON_WRITE: 1
python312_pre:
python.version: '3.12'
PIP_PRE: true
pip.pre: true
maxParallel: 10

steps:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
python -c "import linearmodels; linearmodels.test(['-n', 'auto', '--junitxml=../junit/test-results.xml'])"
popd
displayName: 'Run tests (site-packages)'
condition: eq(variables['test.install'], 'true')
condition: and(ne(variables['test.install'], 'true'), eq(variables['pip.pre'], 'false'))
- script: |
echo "Testing editable install"
Expand All @@ -129,7 +129,15 @@ jobs:
echo pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
displayName: 'Run tests (editable)'
condition: ne(variables['test.install'], 'true')
condition: and(ne(variables['test.install'], 'false'), eq(variables['pip.pre'], 'false'))
- script: |
echo "Testing pip-pre"
echo pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests
displayName: 'Run tests (pip pre)'
condition: eq(variables['pip.pre'], 'true')
continueOnError: true
- task: PublishTestResults@2
inputs:
Expand Down

0 comments on commit c4999b2

Please sign in to comment.