-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (57 loc) · 1.59 KB
/
ubuntu_python_matrix_test.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
name: continuous-integration/github/pr/linux
on:
pull_request:
branches:
- master
jobs:
pyomo-linux-tests:
name: py${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- name: Setup Conda
uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: |
conda info
conda init bash
conda env list
- name: Conda list
shell: pwsh
run: conda list
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
conda env list
conda activate test
python -m pip install --upgrade pip
pip install --quiet git+https://github.com/PyUtilib/pyutilib
pip install --quiet git+https://github.com/Pyomo/pyomo
python setup.py develop
pip install nose
pip install coverage
pip install codecov
pip install pyyaml
conda install -c conda-forge glpk ipopt
- name: Run tests
shell: bash -l {0}
run: |
nosetests --with-xunit --with-coverage --cover-xml .
coverage report -m
- name: Send coverage data to codecov
shell: bash -l {0}
run: |
export CODECOV_TOKEN="a045cd48-34f2-47ea-a819-ed1ec4e41f36"
codecov