File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
- runs-on : ubuntu-latest
14
+ runs-on : ${{ matrix.os }}
15
15
strategy :
16
16
matrix :
17
+ os : [ubuntu-18.04, macOS-10.15] # add windows-2019 when poetry allows installation with `-f` flag
17
18
python-version : [3.7, 3.8]
18
19
19
20
steps :
24
25
with :
25
26
python-version : ${{ matrix.python-version }}
26
27
28
+ - name : Setup macOS
29
+ if : runner.os == 'macOS'
30
+ run : |
31
+ brew install libomp # https://github.com/pytorch/pytorch/issues/20030
32
+
33
+ - name : Setup macOS
34
+ if : runner.os == 'windows'
35
+ run : |
36
+ brew install libomp # https://github.com/pytorch/pytorch/issues/20030
37
+
27
38
- name : Get full Python version
28
39
id : full-python-version
29
40
shell : bash
63
74
shell : bash
64
75
run : poetry run pytest tests
65
76
77
+ - name : Statistics
78
+ if : success()
79
+ run : |
80
+ pip install coverage
81
+ coverage report
82
+ coverage xml
83
+
84
+ - name : Upload coverage to Codecov
85
+ uses : codecov/codecov-action@v1
86
+ if : always()
87
+ with :
88
+ token : ${{ secrets.CODECOV_TOKEN }}
89
+ file : coverage.xml
90
+ flags : cpu,pytest
91
+ name : CPU-coverage
92
+ fail_ci_if_error : false
93
+
66
94
docs :
67
95
name : Test docs build
68
96
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -56,9 +56,6 @@ markers =
56
56
[coverage:report]
57
57
ignore_errors = False
58
58
show_missing = True
59
- omit =
60
- temporal_fusion_transformer_pytorch/_version.py
61
- *testing.py
62
59
63
60
64
61
[mypy]
You can’t perform that action at this time.
0 commit comments