Skip to content

Commit

Permalink
Move tests to python >= 3.7 because of quadpy
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaem committed Apr 21, 2022
1 parent ff47278 commit 7d8365c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8, 3.9]
name: Python ${{ matrix.python-version }} example

steps:
Expand Down
13 changes: 7 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ jobs:
vmImage: 'macOS-latest'
strategy:
matrix:
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'

steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
Expand All @@ -35,12 +35,13 @@ jobs:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'

steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
Expand All @@ -55,7 +56,7 @@ jobs:
conda build --no-test --python $PYTHON_VERSION ./conf/conda
conda create --name shenfun pip shenfun python=$PYTHON_VERSION --use-local
source activate shenfun
pip install pytest-cov pytest quadpy>=0.16.9
pip install pytest-cov pytest quadpy
pytest tests/ --junitxml=junit/test-results.xml --cov=$(python -c "import site; print(site.getsitepackages()[0]+'/shenfun')") --cov-report=xml --cov-report=html
displayName: Build and test
Expand All @@ -72,7 +73,7 @@ jobs:
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'

- bash: |
if [ $PYTHON_VERSION == 3.7 ]; then
if [ $PYTHON_VERSION == 3.9 ]; then
source activate shenfun
pip install codecov
bash <(curl -s https://codecov.io/bash)
Expand Down
2 changes: 1 addition & 1 deletion conf/conda/component-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
quadpy >=0.16.9
quadpy

0 comments on commit 7d8365c

Please sign in to comment.