44 push :
55 branches :
66 - master
7- pull_request :
7+ pull_request :
8+ branches :
9+ - master
810
911env :
1012 CARGO_TERM_COLOR : always
@@ -92,10 +94,10 @@ jobs:
9294 - name : Build (no features)
9395 run : cargo build --no-default-features --verbose --target ${{ matrix.platform.rust-target }}
9496
95- # Omit async-std-runtime feature for MSRV 1.45.0
97+ # Omit async-std-runtime and testing features from MSRV 1.45.0 (See README for details)
9698 - if : matrix.rust == '1.45.0'
9799 name : Prepare 1.45.0 features
98- run : echo features=testing, attributes,tokio-runtime >> $GITHUB_ENV
100+ run : echo features=attributes,tokio-runtime >> $GITHUB_ENV
99101
100102 # Use all features for MSRV 1.46.0 and above
101103 - if : matrix.rust != '1.45.0'
@@ -105,21 +107,15 @@ jobs:
105107 - name : Build
106108 run : cargo build --features=${{env.features}} --verbose --target ${{ matrix.platform.rust-target }}
107109
110+ - if : matrix.platform.os != 'windows-latest'
111+ name : Install pyo3-asyncio test dependencies
112+ run : |
113+ python -m pip install -U uvloop
114+
108115 # Run tests (except on PyPy, because no embedding API).
109116 - if : matrix.python-version != 'pypy-3.6'
110117 name : Test
111118 run : cargo test --features=${{env.features}} --target ${{ matrix.platform.rust-target }}
112-
113- - name : Install python test dependencies
114- run : |
115- python -m pip install -U pip setuptools
116- pip install setuptools-rust pytest pytest-benchmark tox tox-venv
117- # - name: Test example extension modules
118- # shell: bash
119- # run: |
120- # for example_dir in examples/*; do
121- # tox --discover $(which python) -c $example_dir -e py
122- # done
123119 env :
124120 RUST_BACKTRACE : 1
125121 RUSTFLAGS : " -D warnings"
@@ -137,14 +133,17 @@ jobs:
137133 toolchain : nightly
138134 override : true
139135 profile : minimal
136+ - name : Install pyo3-asyncio test dependencies
137+ run : |
138+ python -m pip install -U uvloop
140139 - uses : actions-rs/cargo@v1
141140 with :
142141 command : test
143142 args : --all-features
144143 env :
145144 CARGO_INCREMENTAL : 0
146- RUSTFLAGS : " -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests "
147- RUSTDOCFLAGS : " -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests "
145+ RUSTFLAGS : " -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
146+ RUSTDOCFLAGS : " -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
148147 -
uses :
actions-rs/[email protected] 149148 id : coverage
150149 - uses : codecov/codecov-action@v1
0 commit comments