diff --git a/.github/workflows/python_lint_test.yml b/.github/workflows/python_lint_test.yml index f320e2a..e6c2cd5 100644 --- a/.github/workflows/python_lint_test.yml +++ b/.github/workflows/python_lint_test.yml @@ -6,7 +6,7 @@ on: pull_request: paths: - reusable_workflows/** - - requirements.txt + - requirements* merge_group: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -20,8 +20,14 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Python Setup - uses: ./.github/workflows/python-setup + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install Dependencies + run: pip install -r requirements-test.txt + shell: bash - name: Run tests run: pytest reusable_workflows/ diff --git a/README.md b/README.md index 9c228c1..d7979a4 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,11 @@ This repository is not open to external contributions. Start a venv: ``` python -m venv .venv -source /path/to/venv/bin/activate +source .venv/bin/activate ``` Install pip-tools and run pip-compile: ``` pip install pip-tools -pip-compile requirements.in +pip-compile requirements.in --upgrade +pip-compile --output-file=requirements-test.txt requirements-test.in requirements.in --upgrade ``` diff --git a/requirements-test.in b/requirements-test.in new file mode 100644 index 0000000..e51c656 --- /dev/null +++ b/requirements-test.in @@ -0,0 +1,5 @@ +mypy +black +flake8 +pytest +typing-extensions>=4.6.0 # causes issues with python 3.12 if not specified diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..219aea2 --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,70 @@ +# +# This file is autogenerated by pip-compile with Python 3.12 +# by the following command: +# +# pip-compile --output-file=requirements-test.txt requirements-test.in requirements.in +# +black==24.10.0 + # via -r requirements-test.in +certifi==2024.8.30 + # via requests +cffi==1.17.1 + # via cryptography +charset-normalizer==3.4.0 + # via requests +click==8.1.7 + # via black +cryptography==44.0.0 + # via pyjwt +flake8==7.1.1 + # via -r requirements-test.in +github3-py==3.2.0 + # via -r requirements.in +idna==3.10 + # via requests +iniconfig==2.0.0 + # via pytest +mccabe==0.7.0 + # via flake8 +mypy==1.13.0 + # via -r requirements-test.in +mypy-extensions==1.0.0 + # via + # black + # mypy +packaging==24.2 + # via + # black + # pytest +pathspec==0.12.1 + # via black +platformdirs==4.3.6 + # via black +pluggy==1.5.0 + # via pytest +pycodestyle==2.12.1 + # via flake8 +pycparser==2.22 + # via cffi +pyflakes==3.2.0 + # via flake8 +pyjwt[crypto]==2.10.1 + # via + # github3-py + # pyjwt +pytest==8.3.4 + # via -r requirements-test.in +python-dateutil==2.9.0.post0 + # via github3-py +requests==2.32.3 + # via github3-py +six==1.17.0 + # via python-dateutil +typing-extensions==4.12.2 + # via + # -r requirements-test.in + # mypy +uritemplate==4.1.1 + # via github3-py +urllib3==2.2.3 + # via requests diff --git a/requirements.in b/requirements.in index b056daf..e6dd633 100644 --- a/requirements.in +++ b/requirements.in @@ -1,6 +1 @@ -github3.py -mypy -black -flake8 -pytest -typing-extensions>=4.6.0 # causes issues with python 3.12 if not specified +github3-py==3.2.0 diff --git a/requirements.txt b/requirements.txt index 0a57dbb..c330551 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,69 +4,31 @@ # # pip-compile requirements.in # -attrs==22.2.0 - # via pytest -black==24.3.0 - # via -r requirements.in -certifi==2024.7.4 +certifi==2024.8.30 # via requests -cffi==1.15.1 +cffi==1.17.1 # via cryptography -charset-normalizer==3.0.1 +charset-normalizer==3.4.0 # via requests -click==8.1.3 - # via black -cryptography==43.0.1 +cryptography==44.0.0 # via pyjwt -flake8==6.0.0 - # via -r requirements.in github3-py==3.2.0 # via -r requirements.in -idna==3.7 +idna==3.10 # via requests -iniconfig==2.0.0 - # via pytest -mccabe==0.7.0 - # via flake8 -mypy==1.0.1 - # via -r requirements.in -mypy-extensions==1.0.0 - # via - # black - # mypy -packaging==23.0 - # via - # black - # pytest -pathspec==0.11.0 - # via black -platformdirs==3.0.0 - # via black -pluggy==1.0.0 - # via pytest -pycodestyle==2.10.0 - # via flake8 -pycparser==2.21 +pycparser==2.22 # via cffi -pyflakes==3.0.1 - # via flake8 -pyjwt[crypto]==2.6.0 +pyjwt[crypto]==2.10.1 # via # github3-py # pyjwt -pytest==7.2.1 - # via -r requirements.in -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via github3-py -requests==2.32.0 +requests==2.32.3 # via github3-py -six==1.16.0 +six==1.17.0 # via python-dateutil -typing-extensions==4.12.2 - # via - # -r requirements.in - # mypy uritemplate==4.1.1 # via github3-py -urllib3==1.26.19 +urllib3==2.2.3 # via requests