Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs-check job; numpy 2.x fixes #157

Merged
merged 12 commits into from
Jun 25, 2024
37 changes: 22 additions & 15 deletions azure-pipelines-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ parameters:
- name: recreate_tox
displayName: Recreate tox environments?
type: boolean
default: false
default: true
sk1p marked this conversation as resolved.
Show resolved Hide resolved

stages:
- stage: test
Expand All @@ -39,18 +39,18 @@ stages:
inputs:
versionSpec: '3.9'

- bash: python3.9 -m venv venv
- bash: python3.9 -m venv $(Agent.TempDirectory)/venv
displayName: 'create venv'

- bash: ./venv/bin/pip install -U tox tox-uv uv
- bash: $(Agent.TempDirectory)/venv/bin/pip install -U tox tox-uv uv
displayName: 'install tox'

- ${{ if eq(parameters.recreate_tox, true) }}:
- bash: ./venv/bin/tox -e notebooks -r -- examples/*.ipynb -v
- bash: $(Agent.TempDirectory)/venv/bin/tox -e notebooks -r -- examples/*.ipynb -v
displayName: 'Run nbval tests $(Agent.OS) (recreating)'

- ${{ if eq(parameters.recreate_tox, false) }}:
- bash: ./venv/bin/tox -e notebooks -- examples/*.ipynb -v
- bash: $(Agent.TempDirectory)/venv/bin/tox -e notebooks -- examples/*.ipynb -v
displayName: 'Run nbval tests $(Agent.OS)'

- bash: ./scripts/codecov.sh -f ./coverage.xml
Expand Down Expand Up @@ -84,13 +84,16 @@ stages:
- bash: python3.11 -m venv $(Agent.TempDirectory)/venv
displayName: 'create venv'

- bash: $(Agent.TempDirectory)/venv/bin/pip install $(Build.SourcesDirectory)/LiberTEM/
- bash: $(Agent.TempDirectory)/venv/bin/pip install uv
displayName: 'install uv'

- bash: source $(Agent.TempDirectory)/venv/bin/activate && $(Agent.TempDirectory)/venv/bin/uv pip install $(Build.SourcesDirectory)/LiberTEM/
displayName: 'install LiberTEM'

- bash: $(Agent.TempDirectory)/venv/bin/pip install $(Build.SourcesDirectory)/LiberTEM-live/
- bash: source $(Agent.TempDirectory)/venv/bin/activate && $(Agent.TempDirectory)/venv/bin/uv pip install $(Build.SourcesDirectory)/LiberTEM-live/
displayName: 'install LiberTEM-live'

- bash: $(Agent.TempDirectory)/venv/bin/pip install -r $(Build.SourcesDirectory)/LiberTEM-live/test_requirements.txt
- bash: source $(Agent.TempDirectory)/venv/bin/activate && $(Agent.TempDirectory)/venv/bin/uv pip install -r $(Build.SourcesDirectory)/LiberTEM-live/test_requirements.txt
displayName: 'install LiberTEM-live test requirements'

- bash: cd $(Build.SourcesDirectory)/LiberTEM-live/ && $(Agent.TempDirectory)/venv/bin/pytest --durations=10 --cov=libertem_live --cov-report=term --cov-report=html --cov-report=xml --cov-config=setup.cfg --junitxml=junit.xml tests/
Expand Down Expand Up @@ -129,13 +132,13 @@ stages:
inputs:
versionSpec: '$(python.version)'

- bash: python3.9 -m venv venv
- bash: python3.9 -m venv $(Agent.TempDirectory)/venv
displayName: 'create venv'

- bash: ./venv/bin/pip install -U tox tox-uv uv
- bash: $(Agent.TempDirectory)/venv/bin/pip install -U tox tox-uv uv
displayName: 'install tox'

- bash: ./venv/bin/tox -r
- bash: $(Agent.TempDirectory)/venv/bin/tox -r
displayName: 'Run tox tests $(TOXENV) $(Agent.OS)'

- bash: ./scripts/codecov.sh -f ./coverage.xml
Expand Down Expand Up @@ -167,13 +170,17 @@ stages:

- bash: apt install -y pandoc
displayName: install required debian packages
- bash: pip install -U tox tox-uv uv
displayName: 'install requirements'

- bash: python3.9 -m venv $(Agent.TempDirectory)/venv
displayName: 'create venv'

- bash: $(Agent.TempDirectory)/venv/bin/pip install -U tox
displayName: 'install tox'

- ${{ if eq(parameters.recreate_tox, true) }}:
- bash: tox -r
- bash: $(Agent.TempDirectory)/venv/bin/tox -r
displayName: 'Run tox tests $(TOXENV) $(Agent.OS) (recreating)'

- ${{ if eq(parameters.recreate_tox, false) }}:
- bash: tox
- bash: $(Agent.TempDirectory)/venv/bin/tox
displayName: 'Run tox tests $(TOXENV) $(Agent.OS)'
Loading