Skip to content

Commit

Permalink
Merge pull request #11 from iluvcapra/testing
Browse files Browse the repository at this point in the history
Support for Python version 3.8-3.11
  • Loading branch information
iluvcapra committed Jun 21, 2023
2 parents cb13f18 + caeb7e2 commit a5cd85f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/lint_and_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 4 additions & 0 deletions ptsl/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ptsl Scripting Engine
"""

from __future__ import annotations
from typing import Optional, Tuple, List

from contextlib import contextmanager
Expand Down Expand Up @@ -79,6 +80,9 @@ def ptsl_version(self) -> int:
"""
Requests the current PTSL version running on the server and returns the
reponse value.
:returns: The server's PTSL version number.
:rtype: int
"""
op = ops.GetPTSLVersion()
self.client.run(op)
Expand Down

0 comments on commit a5cd85f

Please sign in to comment.