From 48baa346bacd5483119569d8d00cfd61700ff3ff Mon Sep 17 00:00:00 2001 From: John-Paul Dakran Date: Wed, 26 Jan 2022 10:07:34 -0500 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- tests/audit/report_test.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed7a86ca9..d59e696b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,12 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - python: ['3.6', '3.7'] + python: ['3.6', '3.7', '3.8', '3.9'] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} - - run: python -mpip install --upgrade setuptools pip tox virtualenv + - run: python -m pip install --upgrade setuptools pip tox virtualenv - run: tox -e py - run: tox -e mypy diff --git a/tests/audit/report_test.py b/tests/audit/report_test.py index d544d21e1..919b6b4b4 100644 --- a/tests/audit/report_test.py +++ b/tests/audit/report_test.py @@ -1,3 +1,4 @@ +import os import random import string import tempfile @@ -151,6 +152,7 @@ def test_generate_report( assert item[key] == expected[key] found = True assert found + os.unlink(baseline_file) def count_results(data): @@ -187,7 +189,7 @@ def baseline_file(): with create_file_with_content(first_content) as first_file, \ create_file_with_content(second_content) as second_file, \ - tempfile.NamedTemporaryFile() as baseline_file, \ + tempfile.NamedTemporaryFile(delete=False) as baseline_file, \ transient_settings({ 'plugins_used': [ {'name': 'BasicAuthDetector'},