-
Notifications
You must be signed in to change notification settings - Fork 21
218 lines (196 loc) · 7.64 KB
/
pythonapp.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
name: Unit test
on:
push:
branches:
- master
pull_request:
jobs:
unit_test:
runs-on: ubuntu-latest
name: Unit Test
strategy:
matrix:
os: [ubuntu-latest]
python: [3.7, 3]
include:
- os: macos-latest
python: 3
steps:
- uses: actions/checkout@v2
- name: add symlink dir to PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
pip install coverage --quiet
- name: Test jill download and install
# make an invalid symlink before installation
# issue: https://github.com/abelsiqueira/jill/issues/25
run: |
mkdir ~/.local/bin -p && ln -sf /abcde ~/.local/bin/julia
make test
- name: Test jill upstream
run: |
coverage run -a -m jill upstream
- name: Test jill update
run: |
coverage run -a -m jill update
coverage run -a -m jill update --upstream Official
- name: test list and switch
run: |
coverage run -a -m jill list
coverage run -a -m jill switch 1.0
python -m jill list
coverage run -a -m jill switch 1
python -m jill list
coverage run -a -m jill switch 1.0 --target julia-1
python -m jill list
# - name: Test installation by commit
# run: |
# # SHA=$(git ls-remote https://github.com/julialang/julia master | head -n1 | cut -d$'\t' -f1)
# # VERSION=$(curl https://raw.githubusercontent.com/JuliaLang/julia/master/VERSION)
# # coverage run -a -m jill install ${VERSION}+${SHA} --confirm --upstream Official
# coverage run -a -m jill install 1.8.0-DEV+f7506aa --confirm
# echo "Expected version: 1.8.0-DEV+f7506aa"
# julia-dev -e 'using InteractiveUtils; versioninfo()'
# shell: bash
- name: generate covrage report
run: |
coverage report
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
musl_job:
name: Unit Test for musl
runs-on: ubuntu-latest
strategy:
matrix:
sys: [linux-musl]
python: [3.7]
steps:
- uses: actions/checkout@v2
- name: add symlink dir to PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
pip install coverage --quiet
- name: Test jill download and install
# make an invalid symlink before installation
# issue: https://github.com/abelsiqueira/jill/issues/25
run: |
mkdir ~/.local/bin -p && ln -sf /abcde ~/.local/bin/julia
python -m jill download --sys musl --upstream Official
python -m jill install --upstream Official --confirm --reinstall
julia -e 'using InteractiveUtils; versioninfo()'
python -m jill install 1 --upstream Official --confirm --reinstall
julia -e 'using InteractiveUtils; versioninfo()'
julia-1 -e 'using InteractiveUtils; versioninfo()'
python -m jill install 1.5 --upstream Official --confirm --reinstall
julia -e 'using InteractiveUtils; versioninfo()'
julia-1.5 -e 'using InteractiveUtils; versioninfo()'
windows_job:
name: Unit Test
runs-on: windows-latest
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- name: add symlink dir to PATH
shell: bash
run: echo "C:\Users\runneradmin\AppData\Local\julias\bin" >> $GITHUB_PATH
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
pip install coverage --quiet
- name: test install
run: |
python -m jill upstream
python -m jill install --confirm --upstream Official --reinstall
& julia -e 'using InteractiveUtils; versioninfo()'
& julia --project=. -e 'using Pkg; Pkg.add(\"ImageCore\")'
- name: test symlink
run: |
python -m jill install 1.0 --confirm --upstream Official --reinstall
& julia -e 'using InteractiveUtils; versioninfo()'
& julia-1.0 -e 'using InteractiveUtils; versioninfo()'
- name: test nightly
run: |
python -m jill install latest --confirm --upstream Official --reinstall
& julia -e 'using InteractiveUtils; versioninfo()'
& julia-1.0 -e 'using InteractiveUtils; versioninfo()'
& julia-latest -e 'using InteractiveUtils; versioninfo()'
- name: test path with spaces and trailing slashes
run: |
mkdir "test temp"
& python -m jill install latest --confirm --upstream Official --install_dir "test temp"
& julia -e 'using InteractiveUtils; versioninfo()'
& julia-1.0 -e 'using InteractiveUtils; versioninfo()'
& julia-latest -e 'using InteractiveUtils; versioninfo()'
- name: test unavailable versions
run: |
python -m jill install 9.9 --confirm --upstream Official
& julia -e 'using InteractiveUtils; versioninfo()'
& julia-1.0 -e 'using InteractiveUtils; versioninfo()'
& julia-latest -e 'using InteractiveUtils; versioninfo()'
- name: test list and switch
run: |
python -m jill list
python -m jill switch 1.0
python -m jill list
python -m jill switch 1
python -m jill list
python -m jill switch 1.0 --target julia-1
python -m jill list
# - name: Test installation by commit
# run: |
# python -m jill install 1.8.0-DEV+f7506aa --confirm
# echo "Expected version: 1.8.0-DEV+f7506aa"
# julia-dev -e 'using InteractiveUtils; versioninfo()'
arm_job:
runs-on: ubuntu-18.04
strategy:
matrix:
architecture: [aarch64, armv7]
name: Unit Test
steps:
- uses: actions/[email protected]
# it's running in docker container, so we need to squash all codes into one step
- name: Test jill install
uses: uraimo/[email protected]
with:
architecture: ${{ matrix.architecture }}
distribution: ubuntu18.04
# no --update because not arm is tier 2 support in Julia
run: |
apt-get update -qq
apt-get install -y -qq -o=Dpkg::Use-Pty=0 python3-pip python3-wheel python3-setuptools gnupg wget --no-install-recommends
export DEBUG=True
pip3 install --upgrade pip --quiet
pip3 install -r requirements.txt --quiet
python3 -m jill upstream
python3 -m jill install --confirm --upstream Official
julia -e 'using InteractiveUtils; versioninfo()'
python3 -m jill install 1.0 --confirm --upstream Official
julia -e 'using InteractiveUtils; versioninfo()'
julia-1 -e 'using InteractiveUtils; versioninfo()'
julia-1.0 -e 'using InteractiveUtils; versioninfo()'