Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(IDX): split out test requirements #90

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/python_lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
5 changes: 5 additions & 0 deletions requirements-test.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mypy
black
flake8
pytest
typing-extensions>=4.6.0 # causes issues with python 3.12 if not specified
70 changes: 70 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -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
7 changes: 1 addition & 6 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -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
60 changes: 11 additions & 49 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading