bluemellophone commited on
Commit
047557f
·
unverified ·
1 Parent(s): 45c1d77

Improve CI

Browse files
.github/workflows/python-publish.yml CHANGED
@@ -15,7 +15,10 @@ jobs:
15
  python-version: [3.8]
16
 
17
  steps:
18
- - uses: actions/checkout@v2
 
 
 
19
 
20
  - uses: actions/setup-python@v2
21
  name: Install Python
@@ -36,7 +39,10 @@ jobs:
36
  name: Build source distribution
37
  runs-on: ubuntu-latest
38
  steps:
39
- - uses: actions/checkout@v2
 
 
 
40
 
41
  - uses: actions/setup-python@v2
42
  name: Install Python
 
15
  python-version: [3.8]
16
 
17
  steps:
18
+ - name: Checkout code
19
+ uses: nschloe/action-cached-lfs-checkout@v1.1.3
20
+ with:
21
+ include: "*.0.onnx"
22
 
23
  - uses: actions/setup-python@v2
24
  name: Install Python
 
39
  name: Build source distribution
40
  runs-on: ubuntu-latest
41
  steps:
42
+ - name: Checkout code
43
+ uses: nschloe/action-cached-lfs-checkout@v1.1.3
44
+ with:
45
+ include: "*.0.onnx"
46
 
47
  - uses: actions/setup-python@v2
48
  name: Install Python
.github/workflows/testing.yml CHANGED
@@ -21,7 +21,7 @@ jobs:
21
  - name: Checkout code
22
  uses: nschloe/action-cached-lfs-checkout@v1.1.3
23
  with:
24
- include: "*.0.onnx"
25
 
26
  - name: Set up Python ${{ matrix.python-version }}
27
  uses: actions/setup-python@v2
 
21
  - name: Checkout code
22
  uses: nschloe/action-cached-lfs-checkout@v1.1.3
23
  with:
24
+ exclude: "scoutbot/*/models/pytorch/"
25
 
26
  - name: Set up Python ${{ matrix.python-version }}
27
  uses: actions/setup-python@v2
tests/test_loc.py CHANGED
@@ -92,5 +92,7 @@ def test_loc_onnx_pipeline():
92
  for key in target.keys():
93
  if key == 'class_label':
94
  assert getattr(output, key) == target.get(key)
 
 
95
  else:
96
- assert abs(getattr(output, key) - target.get(key)) < 1e-2
 
92
  for key in target.keys():
93
  if key == 'class_label':
94
  assert getattr(output, key) == target.get(key)
95
+ elif key == 'confidence':
96
+ assert abs(getattr(output, key) - target.get(key)) < 1e-4
97
  else:
98
+ assert abs(getattr(output, key) - target.get(key)) < 1e-1