4
4
push :
5
5
branches :
6
6
- master
7
- pull_request :
7
+ pull_request :
8
+ branches :
9
+ - master
8
10
9
11
env :
10
12
CARGO_TERM_COLOR : always
@@ -92,10 +94,10 @@ jobs:
92
94
- name : Build (no features)
93
95
run : cargo build --no-default-features --verbose --target ${{ matrix.platform.rust-target }}
94
96
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)
96
98
- if : matrix.rust == '1.45.0'
97
99
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
99
101
100
102
# Use all features for MSRV 1.46.0 and above
101
103
- if : matrix.rust != '1.45.0'
@@ -105,21 +107,15 @@ jobs:
105
107
- name : Build
106
108
run : cargo build --features=${{env.features}} --verbose --target ${{ matrix.platform.rust-target }}
107
109
110
+ - if : matrix.platform.os != 'windows-latest'
111
+ name : Install pyo3-asyncio test dependencies
112
+ run : |
113
+ python -m pip install -U uvloop
114
+
108
115
# Run tests (except on PyPy, because no embedding API).
109
116
- if : matrix.python-version != 'pypy-3.6'
110
117
name : Test
111
118
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
123
119
env :
124
120
RUST_BACKTRACE : 1
125
121
RUSTFLAGS : " -D warnings"
@@ -137,14 +133,17 @@ jobs:
137
133
toolchain : nightly
138
134
override : true
139
135
profile : minimal
136
+ - name : Install pyo3-asyncio test dependencies
137
+ run : |
138
+ python -m pip install -U uvloop
140
139
- uses : actions-rs/cargo@v1
141
140
with :
142
141
command : test
143
142
args : --all-features
144
143
env :
145
144
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"
148
147
-
uses :
actions-rs/[email protected]
149
148
id : coverage
150
149
- uses : codecov/codecov-action@v1
0 commit comments