Skip to main content

Merge pull request #4 from alexwlchan/run-tests

ID
25dff6f
date
2023-12-10 15:10:45+00:00
author
Alex Chan <alex@alexwlchan.net>
parents
2b65a4c, 31f1e5a
message
Merge pull request #4 from alexwlchan/run-tests

Run the tests as part of CI
changed files
4 files, 37 additions, 9 deletions

Changed files

.github/workflows/test.yml (943) → .github/workflows/test.yml (1068)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0d42d05..e58febd 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -35,3 +35,7 @@ jobs:
         # by black and I don't have a strong opinion on, so I'm going to trust
         # black and have flake8 ignore it.
         flake8 --ignore=E501,W503
+    - name: Run tests
+      run: |
+        py.test aws/test_s3tree.py
+        py.test textexpander/test_get_mastodon_text.py

aws/s3tree.py (6373) → aws/s3tree.py (6331)

diff --git a/aws/s3tree.py b/aws/s3tree.py
index 6c82c01..5c6602e 100755
--- a/aws/s3tree.py
+++ b/aws/s3tree.py
@@ -46,7 +46,7 @@ from typing import List
 
 import attr
 import humanize
-import natsort  # pip3 install --user naturalsort==1.5.1
+import natsort
 import termcolor
 
 from _common import create_link_text, create_s3_session, parse_s3_uri

requirements.in (99) → requirements.in (130)

diff --git a/requirements.in b/requirements.in
index 1077b60..038293f 100644
--- a/requirements.in
+++ b/requirements.in
@@ -1,9 +1,12 @@
+attrs
 black
+boto3
 flake8
 httpx
 humanize
 hyperlink
 keyring
+naturalsort==1.5.1
 Pillow
 pillow_heif
 pip-tools

requirements.txt (1982) → requirements.txt (2350)

diff --git a/requirements.txt b/requirements.txt
index 983181a..2c1b593 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,12 +2,20 @@
 # This file is autogenerated by pip-compile with Python 3.12
 # by the following command:
 #
-#    pip-compile requirements.in
+#    pip-compile
 #
 anyio==4.1.0
     # via httpx
+attrs==23.1.0
+    # via -r requirements.in
 black==23.11.0
     # via -r requirements.in
+boto3==1.33.11
+    # via -r requirements.in
+botocore==1.33.11
+    # via
+    #   boto3
+    #   s3transfer
 brotli==1.1.0
     # via yt-dlp
 build==1.0.3
@@ -36,7 +44,7 @@ humanize==4.9.0
     # via -r requirements.in
 hyperlink==21.0.0
     # via -r requirements.in
-idna==3.4
+idna==3.6
     # via
     #   anyio
     #   httpx
@@ -46,6 +54,10 @@ iniconfig==2.0.0
     # via pytest
 jaraco-classes==3.3.0
     # via keyring
+jmespath==1.0.1
+    # via
+    #   boto3
+    #   botocore
 keyring==24.3.0
     # via -r requirements.in
 mccabe==0.7.0
@@ -56,22 +68,24 @@ mutagen==1.47.0
     # via yt-dlp
 mypy-extensions==1.0.0
     # via black
+naturalsort==1.5.1
+    # via -r requirements.in
 packaging==23.2
     # via
     #   black
     #   build
     #   pytest
-pathspec==0.11.2
+pathspec==0.12.0
     # via black
 pillow==10.1.0
     # via
     #   -r requirements.in
     #   pillow-heif
-pillow-heif==0.13.1
+pillow-heif==0.14.0
     # via -r requirements.in
 pip-tools==7.3.0
     # via -r requirements.in
-platformdirs==4.0.0
+platformdirs==4.1.0
     # via black
 pluggy==1.3.0
     # via pytest
@@ -85,21 +99,28 @@ pyproject-hooks==1.0.0
     # via build
 pytest==7.4.3
     # via -r requirements.in
+python-dateutil==2.8.2
+    # via botocore
 requests==2.31.0
     # via yt-dlp
+s3transfer==0.8.2
+    # via boto3
+six==1.16.0
+    # via python-dateutil
 sniffio==1.3.0
     # via
     #   anyio
     #   httpx
-termcolor==2.3.0
+termcolor==2.4.0
     # via -r requirements.in
-urllib3==2.1.0
+urllib3==2.0.7
     # via
+    #   botocore
     #   requests
     #   yt-dlp
 websockets==12.0
     # via yt-dlp
-wheel==0.41.3
+wheel==0.42.0
     # via pip-tools
 yt-dlp==2023.11.16
     # via -r requirements.in