-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (45 loc) · 1.17 KB
/
test-conda.yml
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
name: Test with Conda
on:
pull_request:
push:
branches:
- main
jobs:
test-conda:
name: Test conda env
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
defaults:
run:
shell: bash -l {0}
env:
# requests crashes on OSX without this
no_proxy: "*"
# issue with SciPy on Windows, see https://github.com/scipy/scipy/issues/14002
CONDA_DLL_SEARCH_MODIFICATION_ENABLE: "1"
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{hashFiles('conda-environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: veros
environment-file: conda-environment.yml
use-only-tar-bz2: true
- name: Install test dependencies
run: |
pip install pytest
- name: List
run: |
conda info
conda list
- name: Run tests
run: pytest .