-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a36060
commit 10d30fd
Showing
3 changed files
with
39 additions
and
53 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
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,36 @@ | ||
name: Python bindings | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: build and test python bindings using setuptools | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: install dependencies (mac) | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew install boost-build boost boost-python3 python@3.9 | ||
- name: install dependencies (linux) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt install libboost-tools-dev libboost-python-dev libboost-dev libboost-system-dev python3 python3-setuptools | ||
- name: build and install python module | ||
run: | | ||
cd bindings/python | ||
python3 setup.py build_ext -j3 --libtorrent-link=static install --user | ||
- name: run python tests | ||
run: | | ||
cd bindings/python | ||
python3 test.py |