forked from mottosso/bleeding-rez
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Installation, added workflow
- Loading branch information
Showing
2 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Installation | ||
on: [push] | ||
|
||
jobs: | ||
linux: | ||
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: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
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 | ||
rez bind python | ||
echo "Checking rez as python package: ===========================================" | ||
rez env rez -- python -c 'import rez;print(rez.__file__)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters