-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy path.appveyor.yml_deprecated
102 lines (91 loc) · 3.9 KB
/
.appveyor.yml_deprecated
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
build: off
environment:
PYTHON_VERSION: "3.11"
MINICONDA: C:\\Miniconda37-x64
matrix:
- TEST_FILES: tests\test_orbit.py tests\test_orbits.py
ADDL_CONDA_PKGS: astropy astroquery
COMPILE_NOOPENMP:
BUILD_WHEELS: "true"
- TEST_FILES: tests\test_potential.py tests\test_actionAngle.py
ADDL_CONDA_PKGS:
COMPILE_NOOPENMP:
BUILD_WHEELS: "false"
- TEST_FILES: "tests\\ --ignore=tests\\test_actionAngleTorus.py --ignore=tests\\test_snapshotpotential.py --ignore=tests\\test_qdf.py --ignore=tests\\test_pv2qdf.py --ignore=tests\\test_diskdf.py --ignore=tests\\test_orbit.py --ignore=tests\\test_orbits.py --ignore=tests\\test_potential.py --ignore=tests\\test_actionAngle.py --ignore=tests\\test_streamdf.py --ignore=tests\\test_streamgapdf.py --ignore=tests\\test_evolveddiskdf.py --ignore=tests\\test_quantity.py --ignore=tests\\test_nemo.py --ignore=tests\\test_amuse.py --ignore=tests\\test_coords.py"
ADDL_CONDA_PKGS:
COMPILE_NOOPENMP:
BUILD_WHEELS: "false"
- TEST_FILES: tests\test_quantity.py tests\test_coords.py
ADDL_CONDA_PKGS: astropy
COMPILE_NOOPENMP: "--no-openmp"
BUILD_WHEELS: "false"
platform:
- x64
install:
- cmd: call %MINICONDA%\Scripts\activate.bat
- cmd: conda.exe update --yes --quiet conda
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda info -a
- conda config --prepend channels conda-forge
- "conda create -n test-environment python=%PYTHON_VERSION% numpy scipy matplotlib numexpr setuptools pip cython>=0.20 pytest gsl %ADDL_CONDA_PKGS%"
- activate test-environment
- pip install coverage
- pip install pytest-cov
# Environment variables for GSL linking
- set INCLUDE=%CONDA_PREFIX%\Library\include;%INCLUDE%
- set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
- set LIBPATH=%CONDA_PREFIX%\Library\lib;%LIBPATH%
- "python setup.py build_ext --single_ext --inplace %COMPILE_NOOPENMP%"
- python setup.py develop --single_ext
test_script:
- pytest -v %TEST_FILES% --cov galpy --cov-config .coveragerc --disable-pytest-warnings
after_test:
# Build wheels for different python versions of BUILD_WHEELS, otherwise done
- ps: |
if ($env:BUILD_WHEELS -eq "false") {
Exit-AppVeyorBuild
}
- conda deactivate
- conda remove --name test-environment --all
# Python 3.11
- conda create -n py311 python="3.11" numpy scipy matplotlib setuptools pip pytest gsl
- conda activate py311
- pip install wheel
- set INCLUDE=%CONDA_PREFIX%\Library\include;%INCLUDE%
- set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
- set LIBPATH=%CONDA_PREFIX%\Library\lib;%LIBPATH%
- python setup.py bdist_wheel
- conda deactivate
# Python 3.10
- conda create -n py310 python="3.10" numpy scipy matplotlib setuptools pip pytest gsl
- conda activate py310
- pip install wheel
- set INCLUDE=%CONDA_PREFIX%\Library\include;%INCLUDE%
- set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
- set LIBPATH=%CONDA_PREFIX%\Library\lib;%LIBPATH%
- python setup.py bdist_wheel
- conda deactivate
# Python 3.9
- conda create -n py39 python=3.9 numpy scipy matplotlib setuptools pip pytest gsl
- conda activate py39
- pip install wheel
- set INCLUDE=%CONDA_PREFIX%\Library\include;%INCLUDE%
- set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
- set LIBPATH=%CONDA_PREFIX%\Library\lib;%LIBPATH%
- python setup.py bdist_wheel
- conda deactivate
# Python 3.8
- conda create -n py38 python=3.8 numpy scipy matplotlib setuptools pip pytest gsl
- conda activate py38
- pip install wheel
- set INCLUDE=%CONDA_PREFIX%\Library\include;%INCLUDE%
- set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
- set LIBPATH=%CONDA_PREFIX%\Library\lib;%LIBPATH%
- python setup.py bdist_wheel
- conda deactivate
# Upload as artifacts
- ps: |
if ($env:BUILD_WHEELS -eq "true") {
Get-ChildItem dist\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
}