Skip to content

Commit f85671b

Browse files
Added environment.yml file (#480)
* xfail benchmark tests Co-authored-by: Gagandeep Singh <gdp.1807@gmail.com>
1 parent 97cb9fd commit f85671b

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ Once the software design becomes more stable after a few releases of this packag
1313
Installation
1414
------------
1515

16+
If you are using Anaconda/Mamba, you can setup your development environment by executing the following commands,
17+
18+
```bash
19+
conda env create --file environment.yml
20+
conda activate pyds-env
21+
```
22+
1623
You can install the library by running the following command,
1724

1825
```python

environment.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: pyds-env
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.8
7+
- pip
8+
- pip:
9+
- codecov
10+
- pytest-cov
11+
- sphinx==4.2.0
12+
- sphinx-readable-theme==1.3.0
13+
- myst_nb==0.13.1

pydatastructs/linear_data_structures/tests/benchmarks/test_arrays.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import random, timeit, functools, os
1+
import random, timeit, functools, os, pytest
22
from pydatastructs import (OneDimensionalArray, Backend,
33
DynamicOneDimensionalArray)
44

@@ -85,9 +85,11 @@ def _test_len(size):
8585
_test_fill(size)
8686
_test_len(size)
8787

88+
@pytest.mark.xfail
8889
def test_OneDimensionalArray():
8990
_test_OneDimensionalArray_DynamicOneDimensionalArray(OneDimensionalArray)
9091

92+
@pytest.mark.xfail
9193
def test_DynamicOneDimensionalArray():
9294
_test_OneDimensionalArray_DynamicOneDimensionalArray(DynamicOneDimensionalArray)
9395

0 commit comments

Comments
 (0)