-
Notifications
You must be signed in to change notification settings - Fork 6
134 lines (119 loc) · 3.31 KB
/
test_pip_tcl_ubuntu_newenv.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
name: pip installation
on:
push:
branches:
- main
- paper
- binder
defaults:
run:
shell: bash
jobs:
job:
name: pip tcl ubuntu
runs-on: ubuntu-latest
env:
compiler: 'gcc'
symbols: 'no'
disables: ''
steps:
- name: Clone AlloViz
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9.16"
cache: "pip"
cache-dependency-path: pip_requirements.txt
# TCL IN UBUNTU
- name: Checkout Tk
uses: actions/checkout@v3
with:
repository: tcltk/tk
ref: core-8-5-branch
path: tk
- name: Checkout Tcl
uses: actions/checkout@v3
with:
repository: tcltk/tcl
ref: core-8-5-branch
path: tcl
- name: Setup Environment (compiler=gcc)
run: |
sudo apt-get install tcl8.6-dev libxss-dev
mkdir "$HOME/install"
touch tk/doc/man.macros tk/generic/tkStubInit.c
echo "CFGOPT=$CFGOPT --with-tcl=/usr/lib/tcl8.6" >> $GITHUB_ENV
echo "CC=gcc" >> $GITHUB_ENV
echo "TOOL_DIR=$(cd tcl/tools;pwd)" >> $GITHUB_ENV
echo "BUILD_CONFIG_ID=$OPTS" >> $GITHUB_ENV
working-directory: "."
env:
CFGOPT: --enable-symbols=no
# $disables
COMPILER: gcc
OPTS: gcc-no
- name: Configure (symbols=no)
# opts=$disables)
run: |
./configure $CFGOPT "--prefix=$HOME/install" || {
cat config.log
echo "::error::Failure during Configure"
exit 1
}
working-directory: tk/unix
- name: Build
run: |
make binaries libraries || {
echo "::error::Failure during Build"
exit 1
}
working-directory: tk/unix
- name: Build Test Harness
run: |
make tktest || {
echo "::error::Failure during Build"
exit 1
}
working-directory: tk/unix
- name: Test-Drive Installation
run: |
make install || {
echo "::error::Failure during Install"
exit 1
}
working-directory: tk/unix
# - name: Cache pip deps
# uses: actions/cache@v3
# with:
# path: ${{ env.pythonLocation }}
# key:
# ${{ env.pythonLocation }}-pip-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pip_requirements.txt') }}-${{ env.CACHE_NUMBER }}
# env:
# # Increase this value to reset cache if has not changed
# CACHE_NUMBER: 0
# id: cache
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libnetcdf-dev
python -m pip install -U --upgrade-strategy eager pip
pip install -U --upgrade-strategy eager setuptools "numpy==1.23.5" wheel
pip install -r pip_requirements.txt
# if: steps.cache.outputs.cache-hit != 'true'
- name: Install AlloViz
run: pip install .
- name: Test with pytest
run: |
pip install pytest
pytest test/test_submodules.py
- name: Test pipeline
run: pytest test/test_pipeline.py
timeout-minutes: 2
continue-on-error: true
- name: Test downloads
run: pytest test/test_downloads.py
timeout-minutes: 2
continue-on-error: true