Trigger github action tests also on pull requests
This commit is contained in:
parent
b7f3e5816e
commit
2ce8a0b8b7
43
.github/workflows/test.yml
vendored
43
.github/workflows/test.yml
vendored
|
@ -1,10 +1,9 @@
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
max-parallel: 3
|
max-parallel: 3
|
||||||
|
@ -12,23 +11,23 @@ jobs:
|
||||||
python-version: [3.5, 3.6, 3.7]
|
python-version: [3.5, 3.6, 3.7]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Set Python PATH
|
- name: Set Python PATH
|
||||||
run: ci/actions/setup
|
run: ci/actions/setup
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
default: true
|
default: true
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Install test dependencies
|
- name: Install test dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -U pip setuptools
|
python -m pip install -U pip setuptools
|
||||||
pip install setuptools-rust pytest pytest-benchmark tox tox-venv
|
pip install setuptools-rust pytest pytest-benchmark tox tox-venv
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ci/actions/test
|
run: ci/actions/test
|
||||||
|
|
Loading…
Reference in a new issue