-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (37 loc) · 1.45 KB
/
windows_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Tests on Windows
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: Build and run tests on Windows
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10","3.11","3.12"]
platform: [{ os: "windows-latest", python-architecture: "x64", rust-target: "x86_64-pc-windows-msvc" }]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform.python-architecture }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform.rust-target }}
- name: Install build dependencies
shell: bash
env:
PYTHON: ${{ matrix.python-version }}
run: |
python -m pip install -U pip setuptools
python -m pip install -r requirements-dev.txt
- name: Build wheel
shell: bash
env:
PYTHON: ${{ matrix.python-version }}
run: python setup.py develop
- name: Run tests
env:
PYTHON: ${{ matrix.python-version }}
run: python -m pytest -vvv