Skip to content

Commit

Permalink
Merge pull request #1233 from pelson/feature/improve-azure-pipeline
Browse files Browse the repository at this point in the history
Try to improve the Azure pipeline, and publish the intermediate wheels for debugging
  • Loading branch information
Thrameos authored Nov 17, 2024
2 parents 1dca470 + 09c6ebe commit 1a56a3b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .azure/scripts/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
- script: |
python setup.py test_java
pip install gcovr pytest-cov -r test-requirements.txt
pip install numpy
pip install numpy setuptools
displayName: 'Install requirements'

- script: |
Expand Down
1 change: 0 additions & 1 deletion .azure/scripts/osx-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ sudo ln -s /usr/local/bin/python$PYTHON_VERSION /usr/local/bin/python
which python
python --version
python -m ensurepip
python -m pip install setuptools wheel
5 changes: 3 additions & 2 deletions .azure/scripts/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ steps:
version: '$(jdk.version)'

- script: |
python -m pip install --upgrade pytest setuptools
python setup.py build_ext --inplace
python -m pip install setuptools
python setup.py develop
displayName: 'Build module'

- script: |
Expand All @@ -27,6 +27,7 @@ steps:
displayName: 'Install test'

- script: |
python -m pip install -U pytest
python -m pytest -v --junit-xml=build/test/test.xml test/jpypetest --checkjni
displayName: 'Test JDK $(jdk.version) and Python $(python.version)'
condition: eq(variables['jpypetest.fast'], 'false')
Expand Down
5 changes: 4 additions & 1 deletion .azure/scripts/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ steps:
- script: |
mkdir -p dist
python -m pip install --upgrade pip
python -m pip install --upgrade wheel setuptools
displayName: 'Install dependencies'

- script: |
python -m pip wheel . -w wheelhouse/
displayName: 'Build wheel'
inputs:
PathtoPublish: 'wheelhouse'
ArtifactName: 'python-wheels'
publishLocation: 'Container'

- script: |
ls -lh wheelhouse
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* test=auto
* text=auto

# Specify lf for all source files
*.py text eol=lf
Expand Down

0 comments on commit 1a56a3b

Please sign in to comment.