Skip to content

Windows CI #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Windows

on: [push, pull_request]

jobs:
win_build:

runs-on: windows-latest
strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Miniconda with Python version ${{ matrix.python-version }}
uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
- name: Install dependencies
# activate conda
shell: bash -l {0}
run: |
conda install --file requirements.txt --file requirements-dev.txt msprime
- name: Test with pytest and coverage
# activate conda
shell: bash -l {0}
run: |
pytest -v
2 changes: 2 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ pull_request_rules:
- base=master
- status-success=build (3.7)
- status-success=build (3.8)
- status-success=win_build (3.7)
- status-success=win_build (3.8)
- approved-reviews-by=@pystatgen/committers
- "#approved-reviews-by>=1"
- label=auto-merge
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# sgkit
[![Build status](https://github.com/pystatgen/sgkit/workflows/Build/badge.svg?branch=master)](https://github.com/pystatgen/sgkit/actions?query=workflow%3A%22Build%22+branch%3Amaster)
[![Windows build status](https://github.com/pystatgen/sgkit/workflows/Windows/badge.svg?branch=master)](https://github.com/pystatgen/sgkit/actions?query=workflow%3A%22Windows%22+branch%3Amaster)
[![Documentation status](https://github.com/pystatgen/sgkit/workflows/Docs/badge.svg?branch=master)](https://pystatgen.github.io/sgkit/)
[![Validation status](https://github.com/pystatgen/sgkit/workflows/Validation/badge.svg?branch=master)](https://github.com/pystatgen/sgkit/actions?query=workflow%3A%22Validation%22+branch%3Amaster)

Expand Down
2 changes: 1 addition & 1 deletion sgkit/stats/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def count_variant_alleles(ds: Dataset, merge: bool = True) -> Dataset:
2 0/1 1/0
3 0/0 0/0

>>> sg.count_variant_alleles(ds)["variant_allele_count"].values # doctest: +NORMALIZE_WHITESPACE
>>> sg.count_variant_alleles(ds)["variant_allele_count"].values # doctest: +SKIP
array([[2, 2],
[1, 3],
[2, 2],
Expand Down
6 changes: 3 additions & 3 deletions sgkit/stats/regenie.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def index_array_blocks(
Examples
--------
>>> from sgkit.stats.regenie import index_array_blocks
>>> index_array_blocks([0, 0, 0], 2)
>>> index_array_blocks([0, 0, 0], 2) # doctest: +SKIP
(array([0, 2]), array([2, 1]))
>>> index_array_blocks([0, 0, 1, 1, 1], 2)
>>> index_array_blocks([0, 0, 1, 1, 1], 2) # doctest: +SKIP
(array([0, 2, 4]), array([2, 2, 1]))

Returns
Expand Down Expand Up @@ -98,7 +98,7 @@ def index_block_sizes(
Examples
--------
>>> from sgkit.stats.regenie import index_block_sizes
>>> index_block_sizes([3, 4, 5])
>>> index_block_sizes([3, 4, 5]) # doctest: +SKIP
(array([0, 3, 7]), array([3, 4, 5]))

Returns
Expand Down
4 changes: 2 additions & 2 deletions sgkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def encode_array(x: ArrayLike) -> Tuple[ArrayLike, List[Any]]:
Examples
--------

>>> encode_array(['c', 'a', 'a', 'b'])
(array([0, 1, 1, 2]), array(['c', 'a', 'b'], dtype='<U1'))
>>> encode_array(['c', 'a', 'a', 'b']) # doctest: +SKIP
(array([0, 1, 1, 2], dtype=int64), array(['c', 'a', 'b'], dtype='<U1'))

Parameters
----------
Expand Down