trying miniconda on windows again
@@ -20,30 +20,43 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v1
+ - uses: goanpeca/setup-miniconda@v1
with:
+ auto-update-conda: true
python-version: ${{ matrix.python-version }}
+ activate-environment: exoplanet
- # Cache dependencies
- - uses: actions/cache@v1
- with:
- path: ~\AppData\Local\pip\Cache
- key: ${{ matrix.os }}-pip-${{ hashFiles('setup.py') }}
- restore-keys: |
- ${{ matrix.os }}-pip-
-
- # Setup
- name: Install dependencies
run: |
- python -m pip install -U pip setuptools numpy pybind11 wheel
- python -m pip wheel --wheel-dir=~\AppData\Local\pip\Cache\exoplanet --find-links=~\AppData\Local\pip\Cache\exoplanet .[test]
- python -m pip install -U --find-links=~\AppData\Local\pip\Cache\exoplanet -e .[test]
+ conda install theano numpy pymc3 astropy scipy
+ conda install -c conda-forge celerite
+ python -m pip install -U pip setuptools wheel
+ python -m pip install -e .[test]
+
+ # - name: Set up Python ${{ matrix.python-version }}
+ # uses: actions/setup-python@v1
+ # with:
+ # python-version: ${{ matrix.python-version }}
+
+ # # Cache dependencies
+ # - uses: actions/cache@v1
+ # with:
+ # path: ~\AppData\Local\pip\Cache
+ # key: ${{ matrix.os }}-pip-${{ hashFiles('setup.py') }}
+ # restore-keys: |
+ # ${{ matrix.os }}-pip-
+
+ # # Setup
+ # - name: Install dependencies
+ # run: |
+ # python -m pip install -U pip setuptools numpy pybind11 wheel
+ # python -m pip wheel --wheel-dir=~\AppData\Local\pip\Cache\exoplanet --find-links=~\AppData\Local\pip\Cache\exoplanet .[test]
+ # python -m pip install -U --find-links=~\AppData\Local\pip\Cache\exoplanet -e .[test]
# Run a first quick test to make sure that compiling works
- name: Initial test
env:
- THEANO_FLAGS: mode=FAST_COMPILE,gcc.cxxflags=-march=native
+ THEANO_FLAGS: mode=FAST_COMPILE
MKL_THREADING_LAYER: GNU
MKL_NUM_THREADS: 1
OMP_NUM_THREADS: 1
@@ -56,7 +69,7 @@ jobs:
# Running tests
- name: Run tests
env:
- THEANO_FLAGS: mode=FAST_COMPILE,gcc.cxxflags=-march=native
+ THEANO_FLAGS: mode=FAST_COMPILE
MKL_THREADING_LAYER: GNU
MKL_NUM_THREADS: 1
OMP_NUM_THREADS: 1
