pull/1688/merge
Benjamin Bossan 1 year ago committed by GitHub
commit a9917cb562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@ jobs:
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-timeout pytest-xdist pytest-forked expecttest
pip install -r requirements-dev.txt
- name: Install torch on mac
if: startsWith(matrix.os, 'macOS')
run: pip install --no-cache-dir torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }}

@ -73,18 +73,13 @@ There are a LOT of gaps in current documentation relative to the functionality i
# Installation
Create a Python virtual environment using Python 3.10. Inside the environment, install the following test dependencies:
```
python -m pip install pytest pytest-timeout pytest-xdist pytest-forked expecttest
```
Install `torch` and `torchvision` using the instructions matching your system as listed on the [PyTorch website](https://pytorch.org/).
Create a Python virtual environment using Python 3.10. Inside the environment, install torch` and `torchvision` using the instructions matching your system as listed on the [PyTorch website](https://pytorch.org/).
Then install the remaining dependencies:
```
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt # for testing
python -m pip install --no-cache-dir git+https://github.com/mapillary/inplace_abn.git
python -m pip install -e .
```

@ -0,0 +1,12 @@
[tool.pytest.ini_options]
addopts = "--cov=timm --cov-report=term-missing"
[tool.coverage.run]
omit = [
"tests/test_*.py",
]
[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
skip-string-normalization = true

@ -0,0 +1,6 @@
pytest
pytest-timeout
pytest-xdist
pytest-forked
expecttest
pytest-cov
Loading…
Cancel
Save