diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..35bb50ba --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,29 @@ +name: Pytest + +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + pytest: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + env: + AWS_REGION: ${{ vars.AWS_REGION }} + AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }} + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r sleuth/requirements.txt + pytest diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..1ceab942 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = -p no:warnings diff --git a/sleuth/requirements.txt b/sleuth/requirements.txt index 323e9894..c0d1c17b 100644 --- a/sleuth/requirements.txt +++ b/sleuth/requirements.txt @@ -1,23 +1,20 @@ -attrs==23.2.0 boto3==1.35.97 botocore==1.35.97 certifi==2024.12.14 -chardet==5.2.0 +charset-normalizer==3.4.1 freezegun==1.5.1 idna==3.10 +iniconfig==2.0.0 jmespath==1.0.1 -more-itertools==9.1.0 -packaging==23.2 +packaging==24.2 pluggy==1.5.0 -py==1.11.0 -pyparsing==3.2.1 -pytest==7.4.4 +pytest==8.3.4 pytest-freezegun==0.4.2 python-dateutil==2.9.0.post0 -python-json-logger==2.0.7 +python-json-logger==3.2.1 requests==2.32.3 s3transfer==0.10.4 +setuptools==75.8.0 six==1.17.0 tabulate==0.9.0 urllib3==2.3.0 -wcwidth==0.2.13