forked from PyO3/setuptools-rust
-
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.
Use Github Actions instead of Travis
- Loading branch information
1 parent
16a111d
commit c4df7c0
Showing
14 changed files
with
161 additions
and
137 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,69 @@ | ||
name: CI | ||
on: | ||
pull_request: {} | ||
push: {} | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8, 3.9-dev, pypy3] | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
# Install dependencies on ubuntu | ||
- if: matrix.os == 'ubuntu-latest' | ||
name: Install build dependencies | ||
run: sudo apt-get install -y libxml2-dev libxslt-dev | ||
|
||
# Install 32-bit windows target for pypy3 | ||
- if: matrix.os == 'windows-latest' && matrix.python-version == 'pypy3' | ||
name: Install 32-bit Rust target | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
target: i686-pc-windows-msvc | ||
|
||
- name: Build package | ||
run: pip install -e . | ||
|
||
- name: Test tomlgen_rust | ||
shell: bash | ||
run: | | ||
pip install wheel | ||
cd example_tomlgen | ||
python setup.py tomlgen_rust -w build | ||
# FIXME: Can't test easily on windows 3.9 or pypy because have to build lxml from source! | ||
- name: Test html-py-ever | ||
if: ${{ !(matrix.os == 'windows-latest' && (matrix.python-version == 'pypy3' || matrix.python-version == '3.9-dev')) }} | ||
shell: bash | ||
run: | | ||
cd html-py-ever | ||
pip install -r requirements-dev.txt | ||
python setup.py install | ||
cd test && pytest | ||
- name: Test other examples | ||
shell: bash | ||
run: | | ||
cd examples/ | ||
# PEP517 build isolation means we don't use the setuptools-rust locally, | ||
# instead it installs from PyPI! | ||
pip install --no-use-pep517 -e rust_with_cffi/ | ||
pip install -r rust_with_cffi/requirements-dev.txt | ||
pytest rust_with_cffi/tests.py |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#[macro_use] | ||
extern crate pyo3; | ||
|
||
use pyo3::prelude::*; | ||
use pyo3::wrap_pyfunction; | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#[macro_use] | ||
extern crate pyo3; | ||
|
||
use pyo3::prelude::*; | ||
use pyo3::wrap_pyfunction; | ||
|
||
|
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 @@ | ||
pytest |
Oops, something went wrong.