From 81786106d027e34136de2a0ffef15be6d4b0b970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Mon, 6 Jan 2020 16:43:43 +0100 Subject: [PATCH] checkout a repo --- .github/workflows/pythonapp.yml | 5 +++++ tests/test_finder.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 1389c87..10bb338 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -28,6 +28,11 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Checkout curl for the tests + uses: curl/curl@7.67.0 + with: + path: test_repos/curl + - name: Test with pytest run: | poetry run pytest diff --git a/tests/test_finder.py b/tests/test_finder.py index f990708..4bd9e29 100644 --- a/tests/test_finder.py +++ b/tests/test_finder.py @@ -4,6 +4,6 @@ from git_vuln_finder import find def test_find_vuln(): - all_potential_vulnerabilities, all_cve_found, found = find("/home/cedric/git/curl") + all_potential_vulnerabilities, all_cve_found, found = find("test_repos/curl") assert len(list(all_cve_found)) == 63