forked from AcademySoftwareFoundation/rez
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.49 KB
/
installation.yaml
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: installation
on:
push:
paths-ignore:
- 'src/rez/utils/_version.py'
- 'wiki/**'
- 'metrics/**'
- '**.md'
jobs:
main:
name: ${{ matrix.python-version }} - ${{ matrix.method }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '2.7'
- '3.6'
- '3.7'
method:
- 'python ./install.py'
- 'pip install --target /opt/rez .'
include:
- method: 'python ./install.py'
exports: 'PATH=${PATH}:/opt/rez/bin/rez'
- method: 'pip install --target /opt/rez .'
exports: 'PATH=${PATH}:/opt/rez/bin PYTHONPATH=${PYTHONPATH}:/opt/rez'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
${{ matrix.method }}
find /opt/rez/ -maxdepth 2
- name: rez status
run: |
export ${{ matrix.exports }}
rez status
- name: rez-pip --install .
run: |
export ${{ matrix.exports }}
rez-pip --install .
rez view rez
- name: Import rez package in Python
run: |
export ${{ matrix.exports }}
# Still needed as there's no fallback to use system's python
# TODO update once 'provides' mechanism is implemented
rez bind python
echo "Checking rez as python package:"
rez env rez -- python -c 'import rez;print(rez.__file__)'