Skip to content
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

[CI] Fix build installation #94

Merged
merged 7 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from 6 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
59 changes: 38 additions & 21 deletions .github/workflows/build_unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,48 @@ concurrency:
jobs:
unit_test:
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
matrix:
python-version: [3.7]
torch: [1.8.0, 1.9.0]
mmcv: [1.7.0]
include:
- torch: 1.8.0
torch_version: torch1.8
torchvision: 0.9.0
- torch: 1.9.0
torch_version: torch1.9
nijkah marked this conversation as resolved.
Show resolved Hide resolved
torchvision: 0.10.0

steps:
- name: Fail if draft
if: github.event.pull_request.draft == true
run:
exit 1

- name: checkout
uses: actions/checkout@v2

- name: Build and install
run: |
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html
pip install mmcv-full==1.4.7 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html
pip install gpytorch==0.3.6 nevergrad mmcls mmdet mmsegmentation protobuf==3.20
- name: Fail if draft
if: github.event.pull_request.draft == true
run: |
exit 1
- name: checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install OpenMMLab packages
run: |
pip install openmim
mim install mmcv-full==${{ matrix.mmcv }}
mim install mmcls mmdet mmsegmentation
- name: Install SIATune
run: |
pip install -e ".[optional]"
- name: Run unittests and generate coverage report
run: |
- name: Run unittests and generate coverage report
run: |
pip install pytest coverage
coverage run --branch --source siatune -m pytest tests/
coverage xml
coverage report -m
- name: Display coverage
uses: codecov/codecov-action@v3
with:
file: coverage.xml
flags: unittests
- name: Display coverage
uses: codecov/codecov-action@v3
with:
file: coverage.xml
flags: unittests
1 change: 0 additions & 1 deletion requirements/runtime.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mmcv-full>=1.4.7
pandas
protobuf<=3.20
ray[default]==1.9.1
Expand Down