Skip to content

Commit abf80c9

Browse files
committed
Debug CI
1 parent ebc36e5 commit abf80c9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,22 @@ jobs:
115115
conda activate anaconda-client-env
116116
python -c "import tskit;tskit.Tree.generate_star(5).tree_sequence.draw_svg(path='test.svg')"
117117
118-
- name: Run tests
119-
working-directory: python
120-
run: |
121-
source ~/.profile
122-
conda activate anaconda-client-env
123-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
124-
python -m pytest -x --skip-slow --cov=tskit --cov-report=xml --cov-branch -n2 --durations=20 tests
125-
else
126-
python -m pytest -x --cov=tskit --cov-report=xml --cov-branch -n2 --durations=20 tests
127-
fi
118+
# - name: Run tests
119+
# working-directory: python
120+
# run: |
121+
# source ~/.profile
122+
# conda activate anaconda-client-env
123+
# if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
124+
# python -m pytest -x --skip-slow --cov=tskit --cov-report=xml --cov-branch -n2 --durations=20 tests
125+
# else
126+
# python -m pytest -x --cov=tskit --cov-report=xml --cov-branch -n2 --durations=20 tests
127+
# fi
128128

129129
- name: Run numba tests
130130
working-directory: python
131131
run: |
132132
source ~/.profile
133133
conda activate anaconda-client-env
134-
pip install numba
135134
python -m pytest -x --only-numba-tests --cov=tskit.numba --cov-report=xml --cov-branch -n2 --durations=20 tests
136135
137136
- name: Upload coverage to Codecov

python/tests/tsutil.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ def add_random_metadata(ts, seed=1, max_length=10):
406406
offset = np.cumsum(np.hstack(([0], length)), dtype=np.uint32)
407407
# Older versions of numpy didn't have a dtype argument for randint, so
408408
# must use astype instead.
409+
print(offset[-1])
409410
metadata = np.random.randint(-127, 127, offset[-1]).astype(np.int8)
410411
nodes = tables.nodes
411412
nodes.set_columns(

0 commit comments

Comments
 (0)