-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from kushaldas/tests_on_windows
Fixes #144 runs tests on windows
- Loading branch information
Showing
7 changed files
with
110 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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 | ||
|
||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.