-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 970 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: test
on:
push:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python: "3.11"
torch: "2.2.2"
torchvision: "0.17.2"
steps:
- uses: LutingWang/todd/.github/actions/checkout-todd@main
with:
lfs: true
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python }}
- name: Test
run: |
pip install -U setuptools wheel
pip install torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }}
pip install git+https://github.com/lvis-dataset/lvis-api.git@lvis_challenge_2021 --no-build-isolation
pip install .[optional,test]
mim install mmcv
coverage run
coverage xml && coverage report -m
- uses: codecov/codecov-action@main
with:
token: ${{ secrets.CODECOV_TOKEN }}