pyo3/.github/workflows/test.yml

35 lines
803 B
YAML
Raw Normal View History

2019-11-16 12:39:59 +00:00
name: Test
on: [push]
jobs:
build:
runs-on: windows-latest
strategy:
2019-11-17 04:07:36 +00:00
max-parallel: 3
2019-11-16 12:39:59 +00:00
matrix:
2019-11-17 04:07:36 +00:00
python-version: [3.5, 3.6, 3.7]
2019-11-16 12:39:59 +00:00
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
2019-11-17 03:16:36 +00:00
- name: Set Python PATH
run: ci/actions/setup
2019-11-16 12:39:59 +00:00
- name: Install Rust
2019-11-17 03:16:36 +00:00
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
2019-11-17 04:07:36 +00:00
default: true
2019-11-16 12:39:59 +00:00
- name: Build
run: cargo build --verbose
- name: Install test dependencies
run: |
python -m pip install -U pip setuptools
pip install setuptools-rust pytest pytest-benchmark tox tox-venv
- name: Test
2019-11-17 03:16:36 +00:00
run: ci/actions/test