Skip to content

Commit

Permalink
CI: Add pre-release testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Jan 4, 2024
1 parent 7c4fc34 commit cbc8699
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
15 changes: 13 additions & 2 deletions ci/azure/azure_template_posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ jobs:
SCIPY: 1.5.0
MATPLOTLIB: 3.3.0
PANDAS: 1.1.0
python312_pre:
python.version: '3.12'
pip.pre: true

maxParallel: 10

Expand Down Expand Up @@ -147,7 +150,7 @@ jobs:
python -c "import arch; arch.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 @@ -157,7 +160,15 @@ jobs:
echo pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} ${PYTEST_OPTS} arch/tests
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} ${PYTEST_OPTS} arch/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} ${PYTEST_OPTS} arch/tests
pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} ${PYTEST_OPTS} arch/tests
displayName: 'Run tests (pip pre)'
condition: eq(variables['pip.pre'], 'true')
continueOnError: true
- task: PublishTestResults@2
inputs:
Expand Down
7 changes: 7 additions & 0 deletions ci/azure/install-posix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ fi;
CMD="$CMD $EXTRA"
echo $CMD
eval $CMD

if [ "${PIP_PRE}" = true ]; then
python -m pip uninstall -y numpy pandas scipy matplotlib statsmodels
python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy pandas scipy matplotlib --upgrade --use-deprecated=legacy-resolver
python -m pip install cython --upgrade
python -m pip install git+https://github.com/statsmodels/statsmodels.git --upgrade --no-build-isolation -v
fi
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
setuptools>=61
wheel
setuptools_scm[toml]>=7,<8
"setuptools_scm[toml]>=8.0.3,<9
oldest-supported-numpy
cython>=0.29.34 # Works with 3.0.0b2
numpy >=1.22
Expand Down

0 comments on commit cbc8699

Please sign in to comment.