From 3d2d4aa27320262b558f309820c65c1d681b9176 Mon Sep 17 00:00:00 2001 From: Ashley Grealish Date: Mon, 28 Aug 2023 15:12:51 +0100 Subject: [PATCH 1/3] Fix typo in get_test_from_file function name --- check_links.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_links.py b/check_links.py index f76ef0a..4be19c8 100644 --- a/check_links.py +++ b/check_links.py @@ -17,7 +17,7 @@ def remove_duplicates(urls): return list(set(urls)) -def get_test_from_file(file): +def get_text_from_file(file): # Assume the local file has been checked out in the action try: with open('./' + file) as f: @@ -39,7 +39,7 @@ def get_test_from_file(file): for file in files: - text = get_test_from_file(file) + text = get_text_from_file(file) extractor = URLExtract() file_links = extractor.find_urls(text) @@ -83,4 +83,4 @@ def get_test_from_file(file): # Newline to separate URLs from different files print() -exit(exit_status) \ No newline at end of file +exit(exit_status) From 329e29904cf7670caf1383946d969cd384444821 Mon Sep 17 00:00:00 2001 From: Ashley Grealish Date: Tue, 3 Oct 2023 21:04:48 +0100 Subject: [PATCH 2/3] Pin to python 3.11 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a2d20b1..45ae89d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:latest +FROM python:3.11-alpine ADD check_links.py /check_links.py ADD requirements.txt /requirements.txt From 49ed99ec2f8d4c24e3d4d1f00bd270d300524620 Mon Sep 17 00:00:00 2001 From: Ashley Grealish Date: Tue, 3 Oct 2023 21:20:16 +0100 Subject: [PATCH 3/3] Bump requirements to latest --- Dockerfile | 2 +- requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 45ae89d..a2d20b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-alpine +FROM python:latest ADD check_links.py /check_links.py ADD requirements.txt /requirements.txt diff --git a/requirements.txt b/requirements.txt index 9d95605..7e39812 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -requests==2.22.0 -urlextract==0.12.1 +requests==2.31.0 +urlextract==1.8.0