File tree Expand file tree Collapse file tree 5 files changed +11
-2
lines changed Expand file tree Collapse file tree 5 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Python application
2
2
3
- on : [push]
3
+ on : [push, pull_request ]
4
4
5
5
jobs :
6
6
build :
24
24
black --check test/
25
25
- name : Run tests
26
26
run : |
27
- python setup.py test
27
+ ACTIONS=1 python setup.py test
File renamed without changes.
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ def test_bad_version(self):
32
32
output = csv2cve (os .path .join (self .CSV_PATH , "bad_version.csv" ))
33
33
self .assertEqual (- 2 , output )
34
34
35
+ @unittest .skipUnless (
36
+ os .getenv ("ACTIONS" ) != "1" , "Skipping tests that cannot pass in github actions"
37
+ )
35
38
def test_sample_csv (self ):
36
39
output = csv2cve (os .path .join (self .CSV_PATH , "test.csv" ))
37
40
self .assertIn ("CVE-2018-19664" , output [0 ])
Original file line number Diff line number Diff line change @@ -153,6 +153,9 @@ class TestExtractFileCab(TestExtractorBase):
153
153
def setUp (self ):
154
154
download_file (VMWARE_CAB , os .path .join (self .tempdir , "test.cab" ))
155
155
156
+ @unittest .skipUnless (
157
+ os .getenv ("ACTIONS" ) != "1" , "Skipping tests that cannot pass in github actions"
158
+ )
156
159
def test_extract_file_cab (self ):
157
160
""" Test the cab file extraction """
158
161
for extracted_path in self .extract_files (
Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ def test_get_cvelist(self):
94
94
self .assertTrue (os .path .isdir (self .nvddir ))
95
95
self .assertTrue (os .path .isfile (self .dbname ))
96
96
97
+ @unittest .skipUnless (
98
+ os .getenv ("ACTIONS" ) != "1" , "Skipping tests that cannot pass in github actions"
99
+ )
97
100
def test_ssl (self ):
98
101
""" Test nvd download for valid ssl """
99
102
port = 32983
You can’t perform that action at this time.
0 commit comments