-
Notifications
You must be signed in to change notification settings - Fork 27
97 lines (92 loc) · 2.83 KB
/
build.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
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
# This workflow installs and tests the RivGraph package
name: build
on:
pull_request:
schedule:
- cron: '0 0 1 * *' # run workflow at 12AM on first day of every month
workflow_dispatch:
jobs:
ubunutu-build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: false
activate-environment: rivgraph
environment-file: conda-linux-64.lock
- name: install RivGraph + dependencies, then unit test
run: |
conda env list
conda info
conda list
conda install -c conda-forge pip
pip install pytest pytest-timeout pytest-cov coveralls coverage
pip install --upgrade -e .
coverage run -m pytest --cov-config=.coveragerc --cov=rivgraph/
conda list
# windows-build:
# runs-on: ${{ matrix.os }}
# defaults:
# run:
# shell: bash -l {0}
# strategy:
# fail-fast: false
# matrix:
# os: [windows-latest]
# env:
# OS: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# python-version: ${{ matrix.python-version }}
# miniconda-version: "latest"
# channels: conda-forge
# activate-environment: rivgraph
# environment-file: conda-win-64.lock
# - name: install RivGraph + dependencies, then unit test
# run: |
# conda env list
# conda install -c conda-forge pip
# pip install pytest pytest-timeout pytest-cov coveralls
# pip install --upgrade -e .
# python -m pytest --cov-config=.coveragerc --cov=rivgraph/
# conda list
# macos-build:
# runs-on: ${{ matrix.os }}
# defaults:
# run:
# shell: bash -l {0}
# strategy:
# fail-fast: false
# matrix:
# os: [macos-latest]
# env:
# OS: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# python-version: ${{ matrix.python-version }}
# miniconda-version: "latest"
# channels: conda-forge
# activate-environment: rivgraph
# environment-file: conda-osx-64.lock
# - name: install RivGraph + dependencies, then unit test
# run: |
# conda env list
# conda install -c conda-forge pip
# pip install pytest pytest-timeout pytest-cov coveralls
# pip install --upgrade -e .
# python -m pytest --cov-config=.coveragerc --cov=rivgraph/
# conda list