Skip to content

Commit 48baa34

Browse files
committed
Update ci.yml
1 parent 4acedd0 commit 48baa34

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
17-
python: ['3.6', '3.7']
17+
python: ['3.6', '3.7', '3.8', '3.9']
1818
steps:
1919
- uses: actions/checkout@v2
2020
- uses: actions/setup-python@v2
2121
with:
2222
python-version: ${{ matrix.python }}
23-
- run: python -mpip install --upgrade setuptools pip tox virtualenv
23+
- run: python -m pip install --upgrade setuptools pip tox virtualenv
2424
- run: tox -e py
2525
- run: tox -e mypy

tests/audit/report_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import random
23
import string
34
import tempfile
@@ -151,6 +152,7 @@ def test_generate_report(
151152
assert item[key] == expected[key]
152153
found = True
153154
assert found
155+
os.unlink(baseline_file)
154156

155157

156158
def count_results(data):
@@ -187,7 +189,7 @@ def baseline_file():
187189

188190
with create_file_with_content(first_content) as first_file, \
189191
create_file_with_content(second_content) as second_file, \
190-
tempfile.NamedTemporaryFile() as baseline_file, \
192+
tempfile.NamedTemporaryFile(delete=False) as baseline_file, \
191193
transient_settings({
192194
'plugins_used': [
193195
{'name': 'BasicAuthDetector'},

0 commit comments

Comments
 (0)