-
Notifications
You must be signed in to change notification settings - Fork 338
91 lines (84 loc) · 2.85 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
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
name: installation
on:
pull_request:
paths:
- 'src/**'
- 'install.py'
- 'setup.py'
- 'MANIFEST.in'
- 'pyproject.toml'
- '.github/workflows/installation.yaml'
- '!src/rez/utils/_version.py'
- '!**.md'
push:
paths:
- 'src/**'
- 'install.py'
- 'setup.py'
- 'MANIFEST.in'
- 'pyproject.toml'
- '.github/workflows/installation.yaml'
- '!src/rez/utils/_version.py'
- '!**.md'
workflow_dispatch:
jobs:
main:
name: ${{ matrix.os }} - ${{ matrix.python-version }} - ${{ matrix.method }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
method: ['install' ,'pip']
include:
# ubuntu
- os: ubuntu-latest
method: install
REZ_SET_PATH_COMMAND: 'export PATH=${PATH}:/opt/rez/bin/rez'
REZ_INSTALL_COMMAND: python ./install.py /opt/rez
- os: ubuntu-latest
method: pip
REZ_SET_PATH_COMMAND: 'export PATH=${PATH}:/opt/rez/bin PYTHONPATH=${PYTHONPATH}:/opt/rez'
REZ_INSTALL_COMMAND: pip install --target /opt/rez .
# macOS
- os: macos-latest
method: install
REZ_SET_PATH_COMMAND: 'export PATH=${PATH}:~/rez/bin/rez'
REZ_INSTALL_COMMAND: python ./install.py ~/rez
- os: macos-latest
method: pip
REZ_SET_PATH_COMMAND: 'export PATH="$PATH:~/rez/bin" PYTHONPATH=$PYTHONPATH:$HOME/rez'
REZ_INSTALL_COMMAND: pip install --target ~/rez .
# windows
- os: windows-latest
method: install
REZ_SET_PATH_COMMAND: '$env:PATH="$env:PATH;C:\ProgramData\rez\Scripts\rez"'
REZ_INSTALL_COMMAND: python ./install.py C:\ProgramData\rez
- os: windows-latest
method: pip
REZ_SET_PATH_COMMAND: '[System.Environment]::SetEnvironmentVariable("PATH","$env:PATH;C:\ProgramData\rez\bin"); $env:PYTHONPATH="$env:PYTHONPATH;C:\ProgramData\rez"'
REZ_INSTALL_COMMAND: pip install --target C:\ProgramData\rez .
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
env:
MATRIX_PYTHON_VERSION: ${{ matrix.python-version }}
run: |
${{ matrix.REZ_INSTALL_COMMAND }}
- name: Run rez-status
env:
MATRIX_PYTHON_VERSION: ${{ matrix.python-version }}
run: |
${{ matrix.REZ_SET_PATH_COMMAND }}
rez-status
- name: Install rez with rez-pip
env:
MATRIX_PYTHON_VERSION: ${{ matrix.python-version }}
run: |
${{ matrix.REZ_SET_PATH_COMMAND }}
rez-pip --install .