-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add multiplatform CI * Fix install paths * Skip tests missing dependencies * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Install optional test dependencies * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e05cbfe
commit efb5460
Showing
7 changed files
with
93 additions
and
9 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
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,37 @@ | ||
name: Test on macOS | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
macos: | ||
name: Test macOS | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: cle | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: angr/binaries | ||
path: binaries | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- run: python -m venv $HOME/venv | ||
name: Create venv | ||
shell: bash | ||
- run: | | ||
source $HOME/venv/bin/activate | ||
pip install git+https://github.com/angr/archinfo.git | ||
pip install git+https://github.com/angr/pyvex.git | ||
name: Install dependencies | ||
- run: | | ||
source $HOME/venv/bin/activate | ||
pip install ./cle[testing] | ||
name: Install | ||
- run: | | ||
source $HOME/venv/bin/activate | ||
pytest -n auto cle | ||
name: Run pytest |
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,42 @@ | ||
name: Test on Windows | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
windows: | ||
name: Test Windows | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: cle | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: angr/binaries | ||
path: binaries | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- run: python -m venv $HOME/venv | ||
name: Create venv | ||
shell: bash | ||
- run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
call %USERPROFILE%\venv\Scripts\activate | ||
pip install git+https://github.com/angr/archinfo.git | ||
pip install git+https://github.com/angr/pyvex.git | ||
name: Install dependencies | ||
shell: cmd | ||
- run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
call %USERPROFILE%\venv\Scripts\activate | ||
pip install ./cle[testing] | ||
name: Install | ||
shell: cmd | ||
- run: | | ||
call %USERPROFILE%\venv\Scripts\activate | ||
pytest -n auto cle | ||
name: Run pytest | ||
shell: cmd |
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
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
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
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