-
Notifications
You must be signed in to change notification settings - Fork 36
58 lines (50 loc) · 1.23 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- "main"
- "feature/library-pruning"
pull_request:
branches:
- "main"
- "feature/library-pruning"
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v1
- name: build info
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: setup conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: ./.github/test-env.yaml
channels: conda-forge,defaults
activate-environment: test
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: install package
shell: bash -l {0}
run: |
pip install . --no-deps
- name: conda list
shell: bash -l {0}
run: conda list
- name: run tests
shell: bash -l {0}
run: |
pytest -v --color=yes