Skip to content

Commit

Permalink
ci: adds workflow to check Python version compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabpain committed Aug 6, 2023
1 parent ca67437 commit 66662fe
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/python-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python Compatibility Check 🐍
on: [ push ]

jobs:
python-compatibility:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install the CLI
run: |
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
python setup.py install
- name: Check compatibility
run: |
rio --help
2 changes: 1 addition & 1 deletion riocli/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def is_pip_installation() -> bool:
return 'python' in sys.executable


def check_for_updates(current_version: str) -> tuple[bool, str]:
def check_for_updates(current_version: typing.Text) -> typing.Tuple[bool, typing.Text]:
try:
package_info = requests.get(
'https://pypi.org/pypi/rapyuta-io-cli/json').json()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"pyrfc3339>=1.1",
"directory-tree>=0.0.3.1",
"yaspin>=2.3.0",
"jsonschema>=4.0.0",
"jsonschema==4.0.0",
"waiting>=1.4.1",
"semver>=3.0.0",
],
Expand Down

0 comments on commit 66662fe

Please sign in to comment.