Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix Windows CI #136

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade setuptools
run: pip install --upgrade setuptools
- name: Install wheel # wheel is the default package of local environment but docker environment misses the package so we manually install it
run: pip install wheel
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Build and install
Expand All @@ -118,9 +114,10 @@ jobs:
run: python -c "import mim"
- name: Install unittest dependencies
run: pip install -r requirements/tests.txt
- name: Run unittests and generate coverage report
- name: Run unittests
run: coverage run --branch --source=mim -m pytest tests/
- name: Generate coverage report
run: |
coverage run --branch --source=mim -m pytest tests/
coverage xml
coverage report -m
- name: Upload coverage to Codecov
Expand Down