-
Notifications
You must be signed in to change notification settings - Fork 41
117 lines (106 loc) · 4.41 KB
/
github-actions-ubuntu20.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Ubuntu 20.04
on:
push:
branches: master
pull_request:
branches: master
jobs:
coreJupyter:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.6.9", "3.8.3", "3.10", "3.11"]
sympy-version: ["sympy", "sympy==1.2"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install needed ubuntu packages
run: |
# use apt-spy2 to select closest apt mirror,
# which helps avoid connectivity issues in Azure;
# see https://github.com/actions/virtual-environments/issues/675
sudo gem install apt-spy2
sudo apt-spy2 fix --commit --launchpad --country=US
# after selecting a specific mirror, we need to run 'apt-get update'
sudo apt-get update
sudo apt-get install -y texlive-latex-base colordiff pandoc ffmpeg
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade nbconvert
python -m pip install testfixtures ${{ matrix.sympy-version }} mpmath jupyter matplotlib scipy clang_format
python -m pip install git+https://github.com/zachetienne/nrpylatex.git
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Core Jupyter notebook testsuite
run: |
PYDEVD_DISABLE_FILE_VALIDATION=1 ./UnitTesting/core_Jupyter_notebook_testsuite.sh
coreJupdevSymPy:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.8.3", "3.10", "3.11"] # dev SymPy requires Python 3.8+
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install needed ubuntu packages
run: |
# use apt-spy2 to select closest apt mirror,
# which helps avoid connectivity issues in Azure;
# see https://github.com/actions/virtual-environments/issues/675
sudo gem install apt-spy2
sudo apt-spy2 fix --commit --launchpad --country=US
# after selecting a specific mirror, we need to run 'apt-get update'
sudo apt-get update
sudo apt-get install -y texlive-latex-base colordiff pandoc ffmpeg
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade nbconvert
python -m pip install --upgrade git+https://github.com/sympy/sympy/
python -m pip install testfixtures mpmath jupyter matplotlib scipy clang_format
python -m pip install git+https://github.com/zachetienne/nrpylatex.git
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Core Jupyter notebook testsuite
run: |
PYDEVD_DISABLE_FILE_VALIDATION=1 ./UnitTesting/core_Jupyter_notebook_testsuite.sh
UnitTests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.6.9", "3.8.3", "3.10", "3.11"]
sympy-version: ["sympy", "sympy==1.3"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install needed ubuntu packages
run: |
# use apt-spy2 to select closest apt mirror,
# which helps avoid connectivity issues in Azure;
# see https://github.com/actions/virtual-environments/issues/675
sudo gem install apt-spy2
sudo apt-spy2 fix --commit --launchpad --country=US
# after selecting a specific mirror, we need to run 'apt-get update'
sudo apt-get update
sudo apt-get install -y texlive-latex-base colordiff pandoc ffmpeg
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade nbconvert
python -m pip install testfixtures ${{ matrix.sympy-version }} mpmath jupyter matplotlib scipy clang_format
python -m pip install git+https://github.com/zachetienne/nrpylatex.git
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: UnitTests
run: |
./UnitTesting/run_NRPy_UnitTests.sh python